Interface DecoratedExecutorService.Decorator
- Enclosing class:
- DecoratedExecutorService
public static interface DecoratedExecutorService.Decorator
Decorates tasks before they are submitted to an executor.
-
Method Summary
Modifier and TypeMethodDescription<T> Callable<T>decorateCallable(Callable<T> callable) decorateRunnable(Runnable runnable) default <T> Callable<T>decorateScheduledCallable(Callable<T> callable, long delay, TimeUnit unit) Decorates a callable that will be executed after an intended delay.default RunnabledecorateScheduledRunnable(Runnable runnable, long delay, TimeUnit unit) Decorates a runnable that will be executed after an intended delay.
-
Method Details
-
decorateCallable
-
decorateRunnable
-
decorateScheduledCallable
Decorates a callable that will be executed after an intended delay. Used byDecoratedScheduledExecutorServiceforScheduledExecutorService.schedule(java.lang.Runnable, long, java.util.concurrent.TimeUnit). Defaults todecorateCallable(java.util.concurrent.Callable<T>). -
decorateScheduledRunnable
Decorates a runnable that will be executed after an intended delay. Used byDecoratedScheduledExecutorServiceforScheduledExecutorService.schedule(java.lang.Runnable, long, java.util.concurrent.TimeUnit). Defaults todecorateRunnable(java.lang.Runnable).
-