public class QueueExecutor<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
QueueExecutor.Builder<T> |
static interface |
QueueExecutor.CallBackWhenDone<T> |
static interface |
QueueExecutor.RunnableCreator<T> |
| Constructor and Description |
|---|
QueueExecutor(Queue<T> queue,
QueueExecutor.RunnableCreator<T> runnableCreator,
int threadPoolSize,
long checkQueueInterval) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(T item) |
Queue<T> |
getQueue() |
void |
notifyThatItemWasAddedToQueueForProcessing() |
void |
shutdown() |
public QueueExecutor(Queue<T> queue, QueueExecutor.RunnableCreator<T> runnableCreator, int threadPoolSize, long checkQueueInterval)
Copyright © 2015. All rights reserved.