Package net.corda.core.internal
Interface FlowAsyncOperation
-
- All Implemented Interfaces:
public interface FlowAsyncOperation<R extends Object>
Interface for arbitrary operations that can be invoked in a flow asynchronously - the flow will suspend until the operation completes. Operation parameters are expected to be injected via constructor.
-
-
Method Summary
Modifier and Type Method Description abstract CordaFuture<R>
execute(String deduplicationId)
Performs the operation in a non-blocking fashion. -
-
Method Detail
-
execute
abstract CordaFuture<R> execute(String deduplicationId)
Performs the operation in a non-blocking fashion.
- Parameters:
deduplicationId
- If the flow restarts from a checkpoint (due to node restart, or via a visit to the flow hospital following an error) the execute method might be called more than once by the Corda flow state machine.
-
-
-
-