Interface IVSActionProcessComplete

All Superinterfaces:
WorkerTaskEnded<VSAction,VSActionTXProcess,Throwable>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IVSActionProcessComplete extends WorkerTaskEnded<VSAction,VSActionTXProcess,Throwable>
Interface call when the VSAction TX process completes.
Author:
Christopher Mindus
  • Method Details

    • onActionCompleted

      void onActionCompleted(VSAction action, VSActionTXProcess process, Throwable exception)
      Called after the action completes the TXP processing i.e. all its Action Actor calls. This method is called regardless of success or failures. It can be used to check the state of the process.
      Parameters:
      action - The VS action.
      process - The completed process.
      exception - Potential exception thrown in the TX process, null for none.
    • onTaskEnded

      default void onTaskEnded(WorkerTask<VSAction,VSActionTXProcess,Throwable> task)
      Called when the worker task has completed. The VSAction worker task does not provide a return code, it is Void. To get the task exception in case of failure call task.getException() depending on the task completion state. Note: this function is called also when a task is cancelled.
      Specified by:
      onTaskEnded in interface WorkerTaskEnded<VSAction,VSActionTXProcess,Throwable>
      Parameters:
      task - The task that has ended.