Package org.aksw.iguana.cc.worker.impl
Record Class SPARQLProtocolWorker.Config
java.lang.Object
java.lang.Record
org.aksw.iguana.cc.worker.impl.SPARQLProtocolWorker.Config
- All Implemented Interfaces:
HttpWorker.Config
- Enclosing class:
- SPARQLProtocolWorker
public static record SPARQLProtocolWorker.Config(Integer number, QueryHandler queries, HttpWorker.CompletionTarget completionTarget, ConnectionConfig connection, Duration timeout, String acceptHeader, RequestFactory.RequestType requestType, Boolean parseResults)
extends Record
implements HttpWorker.Config
-
Constructor Summary
ConstructorsConstructorDescriptionConfig(Integer number, QueryHandler queries, HttpWorker.CompletionTarget completionTarget, ConnectionConfig connection, Duration timeout, String acceptHeader, RequestFactory.RequestType requestType, Boolean parseResults) Creates an instance of aConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theacceptHeaderrecord component.Returns the value of thecompletionTargetrecord component.Returns the value of theconnectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.number()Returns the value of thenumberrecord component.Returns the value of theparseResultsrecord component.queries()Returns the value of thequeriesrecord component.Returns the value of therequestTyperecord component.timeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Config
public Config(Integer number, QueryHandler queries, HttpWorker.CompletionTarget completionTarget, ConnectionConfig connection, Duration timeout, String acceptHeader, RequestFactory.RequestType requestType, Boolean parseResults) Creates an instance of aConfigrecord class.- Parameters:
number- the value for thenumberrecord componentqueries- the value for thequeriesrecord componentcompletionTarget- the value for thecompletionTargetrecord componentconnection- the value for theconnectionrecord componenttimeout- the value for thetimeoutrecord componentacceptHeader- the value for theacceptHeaderrecord componentrequestType- the value for therequestTyperecord componentparseResults- the value for theparseResultsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
number
Returns the value of thenumberrecord component.- Specified by:
numberin interfaceHttpWorker.Config- Returns:
- the value of the
numberrecord component
-
queries
Returns the value of thequeriesrecord component.- Specified by:
queriesin interfaceHttpWorker.Config- Returns:
- the value of the
queriesrecord component
-
completionTarget
Returns the value of thecompletionTargetrecord component.- Specified by:
completionTargetin interfaceHttpWorker.Config- Returns:
- the value of the
completionTargetrecord component
-
connection
Returns the value of theconnectionrecord component.- Specified by:
connectionin interfaceHttpWorker.Config- Returns:
- the value of the
connectionrecord component
-
timeout
Returns the value of thetimeoutrecord component.- Specified by:
timeoutin interfaceHttpWorker.Config- Returns:
- the value of the
timeoutrecord component
-
acceptHeader
Returns the value of theacceptHeaderrecord component.- Specified by:
acceptHeaderin interfaceHttpWorker.Config- Returns:
- the value of the
acceptHeaderrecord component
-
requestType
Returns the value of therequestTyperecord component.- Returns:
- the value of the
requestTyperecord component
-
parseResults
Returns the value of theparseResultsrecord component.- Specified by:
parseResultsin interfaceHttpWorker.Config- Returns:
- the value of the
parseResultsrecord component
-