Package | Description |
---|---|
org.opendaylight.yangtools.util.concurrent |
Modifier and Type | Method and Description |
---|---|
static CountingRejectedExecutionHandler |
CountingRejectedExecutionHandler.newAbortPolicy()
Returns a counting handler for rejected tasks that throws a RejectedExecutionException.
|
static CountingRejectedExecutionHandler |
CountingRejectedExecutionHandler.newCallerRunsPolicy()
Returns a counting handler for rejected tasks that runs the rejected task directly in the
calling thread of the execute method, unless the executor has been shut down, in which case
the task is discarded.
|
static CountingRejectedExecutionHandler |
CountingRejectedExecutionHandler.newCallerWaitsPolicy()
Returns a counting handler for rejected tasks that blocks on the
ThreadPoolExecutor 's backing queue until it can add the task to the queue. |
Copyright © 2019 OpenDaylight. All rights reserved.