public final class GenericUpdateTaskExecutor extends Object implements UpdateTaskExecutor
UpdateTaskExecutor implementation which forwards tasks scheduled
to it to a given Executor or TaskExecutor.
UpdateTaskExecutor.
| Constructor and Description |
|---|
GenericUpdateTaskExecutor(Executor taskExecutor)
Creates a new
GenericUpdateTaskExecutor which will forward its
tasks to the given TaskExecutor. |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Runnable task)
Submits a task which is to be executed in the future.
|
String |
toString()
Returns the string representation of this executor in no particular
format.
|
public GenericUpdateTaskExecutor(Executor taskExecutor)
GenericUpdateTaskExecutor which will forward its
tasks to the given TaskExecutor.taskExecutor - the executor to which tasks will be forwarded to.
This argument cannot be null.NullPointerException - thrown if the specified executor is
null.public void execute(Runnable task)
execute call.
Implementation note: Note that this method will not forward the specified task to the underlying executor but a different one which will execute this task.
execute in interface UpdateTaskExecutortask - the task to be executed. This argument cannot be
null.public String toString()
This method is intended to be used for debugging only.