| Modifier and Type | Method and Description |
|---|---|
void |
doRun()
This method has the same semantics as
Runnable.run() |
default boolean |
isForceExecution()
Should the runnable force its execution in case it gets rejected?
|
default void |
onAfter()
This method is called in a finally block after successful execution
or on a rejection.
|
void |
onFailure(Exception e)
This method is invoked for all exception thrown by
doRun() |
default void |
onRejection(Exception e)
This should be executed if the thread-pool executing this action rejected the execution.
|
default void |
run() |
void doRun()
throws Exception
Runnable.run()InterruptedException - if the run method throws an InterruptedExceptionExceptiondefault void onAfter()
default void onRejection(Exception e)
onFailure(Exception)default boolean isForceExecution()
Copyright © 2022. All rights reserved.