public class FlowHandleWithClientIdImpl<A> implements FlowHandleWithClientId<A>
public FlowHandleWithClientIdImpl(@NotNull StateMachineRunId id, @NotNull CordaFuture<A> returnValue, @NotNull java.lang.String clientId)
id
- The started state machine's ID.returnValue
- A interface CordaFuture
of the flow's return value.clientId
- The clientId
with which the client has started the flow.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 java.lang.String getClientId()
The
clientId
with which the client has started the flow.
clientId
@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 java.lang.String component3()
The
clientId
with which the client has started the flow.
clientId
@NotNull public FlowHandleWithClientIdImpl<A> copy(@NotNull StateMachineRunId id, @NotNull CordaFuture<A> returnValue, @NotNull java.lang.String clientId)
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable java.lang.Object p)