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
ConstructorDescriptionConfig
(Integer number, QueryHandler queries, HttpWorker.CompletionTarget completionTarget, ConnectionConfig connection, Duration timeout, String acceptHeader, RequestFactory.RequestType requestType, Boolean parseResults) Creates an instance of aConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theacceptHeader
record component.Returns the value of thecompletionTarget
record component.Returns the value of theconnection
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.number()
Returns the value of thenumber
record component.Returns the value of theparseResults
record component.queries()
Returns the value of thequeries
record component.Returns the value of therequestType
record component.timeout()
Returns the value of thetimeout
record component.final String
toString()
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 aConfig
record class.- Parameters:
number
- the value for thenumber
record componentqueries
- the value for thequeries
record componentcompletionTarget
- the value for thecompletionTarget
record componentconnection
- the value for theconnection
record componenttimeout
- the value for thetimeout
record componentacceptHeader
- the value for theacceptHeader
record componentrequestType
- the value for therequestType
record componentparseResults
- the value for theparseResults
record 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 thenumber
record component.- Specified by:
number
in interfaceHttpWorker.Config
- Returns:
- the value of the
number
record component
-
queries
Returns the value of thequeries
record component.- Specified by:
queries
in interfaceHttpWorker.Config
- Returns:
- the value of the
queries
record component
-
completionTarget
Returns the value of thecompletionTarget
record component.- Specified by:
completionTarget
in interfaceHttpWorker.Config
- Returns:
- the value of the
completionTarget
record component
-
connection
Returns the value of theconnection
record component.- Specified by:
connection
in interfaceHttpWorker.Config
- Returns:
- the value of the
connection
record component
-
timeout
Returns the value of thetimeout
record component.- Specified by:
timeout
in interfaceHttpWorker.Config
- Returns:
- the value of the
timeout
record component
-
acceptHeader
Returns the value of theacceptHeader
record component.- Specified by:
acceptHeader
in interfaceHttpWorker.Config
- Returns:
- the value of the
acceptHeader
record component
-
requestType
Returns the value of therequestType
record component.- Returns:
- the value of the
requestType
record component
-
parseResults
Returns the value of theparseResults
record component.- Specified by:
parseResults
in interfaceHttpWorker.Config
- Returns:
- the value of the
parseResults
record component
-