Interface AsynchronousFlowCompletion

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface AsynchronousFlowCompletion

    Allows ThreadState safe logic to run on the completion of the AsynchronousFlow.

    As the AsynchronousFlow is very likely to use other Thread instances (and likely call the completion of AsynchronousFlow on another Thread), this allows ThreadState logic to synchronise the results back into the ManagedFunction and its dependent ManagedObject instances.

    Daniel Sagenschneider
    • Method Detail

      • run

        void run()
          throws java.lang.Throwable
        Contains the ThreadState safe logic.
        java.lang.Throwable - Indicate a failure in the AsynchronousFlow.