Package akka.javasdk.impl.evaluation
Record Class DurableEvaluatorProtocol.Outcome
- Enclosing class:
DurableEvaluatorProtocol
public static record DurableEvaluatorProtocol.Outcome(DurableEvaluatorProtocol.Outcome.Kind kind, DurableEvaluatorProtocol.EvaluationData evaluation, String reason)
extends Record
The terminal outcome of an evaluation, input to the built-in record step.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOutcome(DurableEvaluatorProtocol.Outcome.Kind kind, DurableEvaluatorProtocol.EvaluationData evaluation, String reason) Creates an instance of aOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncompleted(Evaluation evaluation) final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluationrecord component.final inthashCode()Returns a hash code value for this object.inconclusive(String reason) kind()Returns the value of thekindrecord component.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Outcome
public Outcome(DurableEvaluatorProtocol.Outcome.Kind kind, DurableEvaluatorProtocol.EvaluationData evaluation, String reason) Creates an instance of aOutcomerecord class.- Parameters:
kind- the value for thekindrecord componentevaluation- the value for theevaluationrecord componentreason- the value for thereasonrecord component
-
-
Method Details
-
completed
-
inconclusive
-
failed
-
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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
evaluation
Returns the value of theevaluationrecord component.- Returns:
- the value of the
evaluationrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-