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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract CordaFuture<R> execute(String deduplicationId) Performs the operation in a non-blocking fashion.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.