Interface RunnableWrapper

  • All Superinterfaces:
    Runnable

    public interface RunnableWrapper
    extends Runnable
    • Method Detail

      • run

        default void run()
        Specified by:
        run in interface Runnable
      • onFailure

        void onFailure​(Exception e)
        This method is invoked for all exception thrown by doRun()
      • onBefore

        default void onBefore()
                       throws Exception
        This method is called before all execution for init.
        Throws:
        Exception
      • onAfter

        default void onAfter()
                      throws Exception
        This method is called after execution.
        Throws:
        Exception
      • onFinal

        default void onFinal()
        This method is called in a finally block after successful execution or on a rejection.