WaitForStateConsumption

class WaitForStateConsumption(val stateRefs: Set<StateRef>, val services: ServiceHub) : FlowAsyncOperation<Unit>

An FlowAsyncOperation which suspends a flow until the provided StateRefs have been updated.

WARNING! Remember that if the node isn't aware of the supplied StateRefs or if the StateRefs are never updated, then the calling flow will remain suspended.

Constructors

Link copied to clipboard
constructor(stateRefs: Set<StateRef>, services: ServiceHub)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a name of the external operation implementation considering that it can wrapped by WrappedFlowExternalAsyncOperation or WrappedFlowExternalOperation

Link copied to clipboard

a ServiceHub instance

Link copied to clipboard

the StateRefs which will be updated.

Functions

Link copied to clipboard
open override fun execute(deduplicationId: String): CordaFuture<Unit>

Performs the operation in a non-blocking fashion.