public interface RejectedExecutionHandler
Modifier and Type | Field and Description |
---|---|
static RejectedExecutionHandler |
THROW_REJECTED_EXECUTION_EXCEPTION
Typically the default handler for most pool implementations.
|
Modifier and Type | Method and Description |
---|---|
void |
handleRejectedTask(java.lang.Runnable task)
Handle the task that was unable to be accepted by a pool.
|
static final RejectedExecutionHandler THROW_REJECTED_EXECUTION_EXCEPTION
RejectedExecutionException
to indicate the failure in accepting the task.void handleRejectedTask(java.lang.Runnable task)
ListenableFutureTask
or something similar to convert
Callables or handle other future needs. In any case the comparison of tasks should be
possible using ContainerHelper
.task
- Task which could not be submitted to the pool