Package com.qtsurfer.api.sdk
Record Class ValidationOutcome.Queued
java.lang.Object
java.lang.Record
com.qtsurfer.api.sdk.ValidationOutcome.Queued
- Record Components:
strategyId- the strategy whose check was queued
- All Implemented Interfaces:
ValidationOutcome
- Enclosing interface:
- ValidationOutcome
public static record ValidationOutcome.Queued(String strategyId)
extends Record
implements ValidationOutcome
This call queued a check, which has not answered yet. There is nothing
to read here beyond the strategy id: poll
QTSurfer.strategyState(String) for the verdict.
The id is the one the caller passed in, not one read back off the response body.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.qtsurfer.api.sdk.ValidationOutcome
ValidationOutcome.NotQueued, ValidationOutcome.Queued -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanqueued()Returnstrue— this call queued a check.Returns the value of thestrategyIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Queued
Creates an instance of aQueuedrecord class.- Parameters:
strategyId- the value for thestrategyIdrecord component
-
-
Method Details
-
queued
public boolean queued()Returnstrue— this call queued a check.- Specified by:
queuedin interfaceValidationOutcome- Returns:
true— this call queued a check
-
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). -
strategyId
Returns the value of thestrategyIdrecord component.- Specified by:
strategyIdin interfaceValidationOutcome- Returns:
- the value of the
strategyIdrecord component
-