public class FlowHandleImpl<A> implements FlowHandle<A>
public FlowHandleImpl(@NotNull StateMachineRunId id, @NotNull CordaFuture<A> returnValue)
id
- The started state machine's ID.returnValue
- A interface CordaFuture
of the flow's return value.public void close()
Use this function for flows whose returnValue is not going to be used, so as to free up server resources.
@NotNull public StateMachineRunId getId()
The started state machine
's ID.
@NotNull public CordaFuture<A> getReturnValue()
A
interface CordaFuture
of the flow's return value.
interface CordaFuture
@NotNull public StateMachineRunId component1()
The started state machine
's ID.
@NotNull public CordaFuture<A> component2()
A
interface CordaFuture
of the flow's return value.
interface CordaFuture
@NotNull public FlowHandleImpl<A> copy(@NotNull StateMachineRunId id, @NotNull CordaFuture<A> returnValue)
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable java.lang.Object p)