Class AbstractRunnable

    • Constructor Detail

      • AbstractRunnable

        public AbstractRunnable()
    • Method Detail

      • isForceExecution

        public boolean isForceExecution()
        Should the runnable force its execution in case it gets rejected?
      • run

        public final void run()
      • onAfter

        public void onAfter()
        This method is called in a finally block after successful execution or on a rejection.
      • onFailure

        public abstract void onFailure(Throwable t)
        This method is invoked for all exception thrown by doRun()
      • onRejection

        public void onRejection(Throwable t)
        This should be executed if the thread-pool executing this action rejected the execution. The default implementation forwards to onFailure(Throwable)