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 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 a Config record class.
      Parameters:
      number - the value for the number record component
      queries - the value for the queries record component
      completionTarget - the value for the completionTarget record component
      connection - the value for the connection record component
      timeout - the value for the timeout record component
      acceptHeader - the value for the acceptHeader record component
      requestType - the value for the requestType record component
      parseResults - the value for the parseResults record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • number

      public Integer number()
      Returns the value of the number record component.
      Specified by:
      number in interface HttpWorker.Config
      Returns:
      the value of the number record component
    • queries

      public QueryHandler queries()
      Returns the value of the queries record component.
      Specified by:
      queries in interface HttpWorker.Config
      Returns:
      the value of the queries record component
    • completionTarget

      public HttpWorker.CompletionTarget completionTarget()
      Returns the value of the completionTarget record component.
      Specified by:
      completionTarget in interface HttpWorker.Config
      Returns:
      the value of the completionTarget record component
    • connection

      public ConnectionConfig connection()
      Returns the value of the connection record component.
      Specified by:
      connection in interface HttpWorker.Config
      Returns:
      the value of the connection record component
    • timeout

      public Duration timeout()
      Returns the value of the timeout record component.
      Specified by:
      timeout in interface HttpWorker.Config
      Returns:
      the value of the timeout record component
    • acceptHeader

      public String acceptHeader()
      Returns the value of the acceptHeader record component.
      Specified by:
      acceptHeader in interface HttpWorker.Config
      Returns:
      the value of the acceptHeader record component
    • requestType

      public RequestFactory.RequestType requestType()
      Returns the value of the requestType record component.
      Returns:
      the value of the requestType record component
    • parseResults

      public Boolean parseResults()
      Returns the value of the parseResults record component.
      Specified by:
      parseResults in interface HttpWorker.Config
      Returns:
      the value of the parseResults record component