Record Class HandlerContext.AwaitResult.AnyCompleted
java.lang.Object
java.lang.Record
dev.restate.sdk.endpoint.definition.HandlerContext.AwaitResult.AnyCompleted
- Record Components:
single- the completed single of the awaited treeresult- the result of the single, its type matches the type of the singleHandlerContext.Handle
- All Implemented Interfaces:
HandlerContext.AwaitResult
- Enclosing interface:
HandlerContext.AwaitResult
public static record HandlerContext.AwaitResult.AnyCompleted(HandlerContext.UnresolvedFuture.Single single, HandlerContext.Result<?> result)
extends Record
implements HandlerContext.AwaitResult
One single of the awaited tree completed.
The caller MUST store the result in the single, otherwise it is lost.
-
Nested Class Summary
Nested classes/interfaces inherited from interface HandlerContext.AwaitResult
HandlerContext.AwaitResult.Aborted, HandlerContext.AwaitResult.AnyCompleted, HandlerContext.AwaitResult.Cancelled -
Constructor Summary
ConstructorsConstructorDescriptionAnyCompleted(HandlerContext.UnresolvedFuture.Single single, HandlerContext.Result<?> result) Creates an instance of aAnyCompletedrecord class. -
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.result()Returns the value of theresultrecord component.single()Returns the value of thesinglerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
single
-
result
-