public class FlowProgressHandleImpl<A> implements FlowProgressHandle<A>
@JvmOverloads public FlowProgressHandleImpl(@NotNull StateMachineRunId id, @NotNull CordaFuture<A> returnValue, @NotNull rx.Observable<java.lang.String> progress, @Nullable DataFeed<java.lang.Integer,java.lang.Integer> stepsTreeIndexFeed, @Nullable DataFeed<? extends java.util.List<kotlin.Pair<java.lang.Integer,java.lang.String>>,java.util.List> stepsTreeFeed)
id
- The started state machine's ID.returnValue
- A interface CordaFuture
of the flow's return value.progress
- The stream of progress tracker events.stepsTreeIndexFeed
- class DataFeed
of current step in the steps tree, see ProgressTrackerstepsTreeFeed
- class DataFeed
of current steps tree, see ProgressTracker@JvmOverloads public FlowProgressHandleImpl(@NotNull StateMachineRunId id, @NotNull CordaFuture<A> returnValue, @NotNull rx.Observable<java.lang.String> progress, @Nullable DataFeed<java.lang.Integer,java.lang.Integer> stepsTreeIndexFeed)
id
- The started state machine's ID.returnValue
- A interface CordaFuture
of the flow's return value.progress
- The stream of progress tracker events.stepsTreeIndexFeed
- class DataFeed
of current step in the steps tree, see ProgressTracker@JvmOverloads public FlowProgressHandleImpl(@NotNull StateMachineRunId id, @NotNull CordaFuture<A> returnValue, @NotNull rx.Observable<java.lang.String> progress)
id
- The started state machine's ID.returnValue
- A interface CordaFuture
of the flow's return value.progress
- The stream of progress tracker events.@NotNull public FlowProgressHandleImpl<A> copy(@NotNull StateMachineRunId id, @NotNull CordaFuture<A> returnValue, @NotNull rx.Observable<java.lang.String> progress)
public void close()
Use this function for flows whose returnValue and progress are not going to be used or tracked, so as to free up server resources. Note that it won't really close if one subscribes on progress Observable, but then forgets to unsubscribe.
@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 rx.Observable<java.lang.String> getProgress()
The stream of progress tracker events.
@Nullable public DataFeed<java.lang.Integer,java.lang.Integer> getStepsTreeIndexFeed()
of current step in the steps tree, see ProgressTracker
class DataFeed
,
ProgressTracker@Nullable public DataFeed<java.util.List,java.util.List> getStepsTreeFeed()
of current steps tree, see ProgressTracker
class DataFeed
,
ProgressTracker@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 rx.Observable<java.lang.String> component3()
The stream of progress tracker events.
@Nullable public DataFeed<java.lang.Integer,java.lang.Integer> component4()
of current step in the steps tree, see ProgressTracker
class DataFeed
,
ProgressTracker@Nullable public DataFeed<java.util.List,java.util.List> component5()
of current steps tree, see ProgressTracker
class DataFeed
,
ProgressTracker@NotNull public FlowProgressHandleImpl<A> copy(@NotNull StateMachineRunId id, @NotNull CordaFuture<A> returnValue, @NotNull rx.Observable<java.lang.String> progress, @Nullable DataFeed<java.lang.Integer,java.lang.Integer> stepsTreeIndexFeed, @Nullable DataFeed<? extends java.util.List<kotlin.Pair<java.lang.Integer,java.lang.String>>,java.util.List> stepsTreeFeed)
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable java.lang.Object p)