Record Class TimeoutPredicate.Result<T>
java.lang.Object
java.lang.Record
io.nosqlbench.adapters.api.scheduling.TimeoutPredicate.Result<T>
- Enclosing class:
TimeoutPredicate<T>
public static record TimeoutPredicate.Result<T>(T value, TimeoutPredicate.Status status, long duration_ns, long timeout_ns, RuntimeException exception)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(T value, TimeoutPredicate.Status status, long duration_ns, long timeout_ns, RuntimeException exception) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theduration_nsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionrecord component.final inthashCode()Returns a hash code value for this object.booleanbooleanbooleanstatus()Returns the value of thestatusrecord component.longReturns the value of thetimeout_nsrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Result
public Result(T value, TimeoutPredicate.Status status, long duration_ns, long timeout_ns, RuntimeException exception) Creates an instance of aResultrecord class.- Parameters:
value- the value for thevaluerecord componentstatus- the value for thestatusrecord componentduration_ns- the value for theduration_nsrecord componenttimeout_ns- the value for thetimeout_nsrecord componentexception- the value for theexceptionrecord component
-
-
Method Details
-
timeSummary
-
statusDuration
-
timeoutDuration
-
isComplete
public boolean isComplete() -
isIncomplete
public boolean isIncomplete() -
isPending
public boolean isPending() -
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
duration_ns
public long duration_ns()Returns the value of theduration_nsrecord component.- Returns:
- the value of the
duration_nsrecord component
-
timeout_ns
public long timeout_ns()Returns the value of thetimeout_nsrecord component.- Returns:
- the value of the
timeout_nsrecord component
-
exception
Returns the value of theexceptionrecord component.- Returns:
- the value of the
exceptionrecord component
-