Interface InvocationHandle<Res>
- Type Parameters:
Res- Response type
public interface InvocationHandle<Res>
Handle to interact with an invocation.
-
Method Summary
Modifier and TypeMethodDescriptionattach()Attach to this invocation.voidcancel()Cancel this invocation.Get aSignalHandlefor resolving or rejecting a named signal on this invocation.
-
Method Details
-
invocationId
String invocationId()- Returns:
- the invocation id of this invocation
-
cancel
void cancel()Cancel this invocation. -
attach
DurableFuture<Res> attach()Attach to this invocation. This will wait for the invocation to complete -
getOutput
-
signal
Get aSignalHandlefor resolving or rejecting a named signal on this invocation. The receiving handler can await on the signal usingContext.signal(String, Class).- Parameters:
name- the signal name.
-