Package org.aksw.iguana.cc.worker
Record Class HttpWorker.ExecutionStats
java.lang.Object
java.lang.Record
org.aksw.iguana.cc.worker.HttpWorker.ExecutionStats
- Enclosing class:
- HttpWorker
public static record HttpWorker.ExecutionStats(int queryID, Instant startTime, Duration duration, Optional<Integer> httpStatusCode, OptionalLong contentLength, OptionalLong responseBodyHash, Optional<Exception> error)
extends Record
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionExecutionStats
(int queryID, Instant startTime, Duration duration, Optional<Integer> httpStatusCode, OptionalLong contentLength, OptionalLong responseBodyHash, Optional<Exception> error) Creates an instance of aExecutionStats
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of thecontentLength
record component.duration()
Returns the value of theduration
record component.endState()
final boolean
Indicates whether some other object is "equal to" this one.error()
Returns the value of theerror
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of thehttpStatusCode
record component.boolean
int
queryID()
Returns the value of thequeryID
record component.Returns the value of theresponseBodyHash
record component.Returns the value of thestartTime
record component.boolean
boolean
timeout()
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ExecutionStats
public ExecutionStats(int queryID, Instant startTime, Duration duration, Optional<Integer> httpStatusCode, OptionalLong contentLength, OptionalLong responseBodyHash, Optional<Exception> error) Creates an instance of aExecutionStats
record class.- Parameters:
queryID
- the value for thequeryID
record componentstartTime
- the value for thestartTime
record componentduration
- the value for theduration
record componenthttpStatusCode
- the value for thehttpStatusCode
record componentcontentLength
- the value for thecontentLength
record componentresponseBodyHash
- the value for theresponseBodyHash
record componenterror
- the value for theerror
record component
-
-
Method Details
-
endState
-
completed
public boolean completed() -
successful
public boolean successful() -
timeout
public boolean timeout() -
httpError
public boolean httpError() -
miscellaneousException
public boolean miscellaneousException() -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
queryID
public int queryID()Returns the value of thequeryID
record component.- Returns:
- the value of the
queryID
record component
-
startTime
Returns the value of thestartTime
record component.- Returns:
- the value of the
startTime
record component
-
duration
Returns the value of theduration
record component.- Returns:
- the value of the
duration
record component
-
httpStatusCode
Returns the value of thehttpStatusCode
record component.- Returns:
- the value of the
httpStatusCode
record component
-
contentLength
Returns the value of thecontentLength
record component.- Returns:
- the value of the
contentLength
record component
-
responseBodyHash
Returns the value of theresponseBodyHash
record component.- Returns:
- the value of the
responseBodyHash
record component
-
error
Returns the value of theerror
record component.- Returns:
- the value of the
error
record component
-