Record Class HandlerContext.CallResult
java.lang.Object
java.lang.Record
dev.restate.sdk.endpoint.definition.HandlerContext.CallResult
- Enclosing interface:
HandlerContext
public static record HandlerContext.CallResult(AsyncResult<String> invocationIdAsyncResult, AsyncResult<Slice> callAsyncResult)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCallResult(AsyncResult<String> invocationIdAsyncResult, AsyncResult<Slice> callAsyncResult) Creates an instance of aCallResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecallAsyncResultrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinvocationIdAsyncResultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CallResult
Creates an instance of aCallResultrecord class.- Parameters:
invocationIdAsyncResult- the value for theinvocationIdAsyncResultrecord componentcallAsyncResult- the value for thecallAsyncResultrecord component
-
-
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). -
invocationIdAsyncResult
Returns the value of theinvocationIdAsyncResultrecord component.- Returns:
- the value of the
invocationIdAsyncResultrecord component
-
callAsyncResult
Returns the value of thecallAsyncResultrecord component.- Returns:
- the value of the
callAsyncResultrecord component
-