public abstract static class AsyncRequestQueue.ExecutorFactory
extends java.lang.Object
This class may be used by advanced applications to provide custom executors according to their needs.
For applications which rely on setting request priority via Request.getPriority(), a
task queue is provided which will prioritize requests of higher priority should the thread
pool itself be exhausted. If a shared pool is provided which does not make use of the given
queue, then lower-priority requests may have tasks executed before higher-priority requests
when enough tasks are in flight to fully saturate the shared pool.
| Constructor and Description |
|---|
ExecutorFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.util.concurrent.ExecutorService |
createBlockingExecutor(java.util.concurrent.BlockingQueue<java.lang.Runnable> taskQueue) |
abstract java.util.concurrent.ExecutorService |
createNonBlockingExecutor(java.util.concurrent.BlockingQueue<java.lang.Runnable> taskQueue) |
abstract java.util.concurrent.ScheduledExecutorService |
createNonBlockingScheduledExecutor() |
public abstract java.util.concurrent.ExecutorService createNonBlockingExecutor(java.util.concurrent.BlockingQueue<java.lang.Runnable> taskQueue)
public abstract java.util.concurrent.ExecutorService createBlockingExecutor(java.util.concurrent.BlockingQueue<java.lang.Runnable> taskQueue)
public abstract java.util.concurrent.ScheduledExecutorService createNonBlockingScheduledExecutor()