class NotifyingDirectExecutor<A> extends DelegatingDirectExecutor implements DirectExecutor
| Modifier and Type | Field and Description |
|---|---|
private A |
attachment |
private TaskNotifier<java.lang.Runnable,? super A> |
notifier |
| Constructor and Description |
|---|
NotifyingDirectExecutor(DirectExecutor delegate,
TaskNotifier<java.lang.Runnable,? super A> notifier,
A attachment) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.Runnable command)
Execute a task by passing it to the delegate executor.
|
getDelegatetoStringprivate final TaskNotifier<java.lang.Runnable,? super A> notifier
private final A attachment
NotifyingDirectExecutor(DirectExecutor delegate, TaskNotifier<java.lang.Runnable,? super A> notifier, A attachment)
public void execute(java.lang.Runnable command)
DelegatingExecutorexecute in interface java.util.concurrent.Executorexecute in interface DirectExecutorexecute in class DelegatingExecutorcommand - the task