public abstract class WrappingExecutor extends Object implements Executor
Modifier | Constructor and Description |
---|---|
protected |
WrappingExecutor(Executor delegate)
Constructs a new executor that delegates to the given executor.
|
Modifier and Type | Method and Description |
---|---|
protected Executor |
delegate()
Returns the underlying executor.
|
void |
execute(Runnable command) |
protected abstract Runnable |
wrap(Runnable r)
Wraps the given task.
|
protected WrappingExecutor(Executor delegate)
delegate
- an executorprotected Executor delegate()
protected abstract Runnable wrap(Runnable r)
r
- a task