ExecutionStrategyExecuteProduceConsume, ProduceExecuteConsumepublic abstract class ExecutingExecutionStrategy extends java.lang.Object implements ExecutionStrategy
Base class for strategies that need to execute a task by submitting it to an Executor.
If the submission to the Executor is rejected (via a RejectedExecutionException),
the task is tested whether it implements Closeable; if it does, then Closeable.close()
is called on the task object.
ExecutionStrategy.DefaultExecutionStrategyFactory, ExecutionStrategy.Factory, ExecutionStrategy.Producer, ExecutionStrategy.Rejectable| Modifier | Constructor | Description |
|---|---|---|
protected |
ExecutingExecutionStrategy(java.util.concurrent.Executor executor) |
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
execute(java.lang.Runnable task) |
dispatch, executeCopyright © 1995–2018 Webtide. All rights reserved.