public class EventDrivenWorkerQueue extends java.lang.Object implements WorkerQueue
| Modifier and Type | Class and Description |
|---|---|
static class |
EventDrivenWorkerQueue.Worker |
| Constructor and Description |
|---|
EventDrivenWorkerQueue(boolean clustered,
boolean primary,
ProcessScheduler scheduler) |
| Modifier and Type | Method and Description |
|---|---|
void |
offer(Connectable connectable) |
EventDrivenWorkerQueue.Worker |
poll(long timeout,
java.util.concurrent.TimeUnit timeUnit) |
void |
resumeWork(Connectable connectable) |
void |
setClustered(boolean clustered) |
void |
setPrimary(boolean primary) |
void |
suspendWork(Connectable connectable) |
public EventDrivenWorkerQueue(boolean clustered,
boolean primary,
ProcessScheduler scheduler)
public void setClustered(boolean clustered)
setClustered in interface WorkerQueuepublic void setPrimary(boolean primary)
setPrimary in interface WorkerQueuepublic EventDrivenWorkerQueue.Worker poll(long timeout, java.util.concurrent.TimeUnit timeUnit)
poll in interface WorkerQueuepublic void offer(Connectable connectable)
offer in interface WorkerQueuepublic void resumeWork(Connectable connectable)
resumeWork in interface WorkerQueuepublic void suspendWork(Connectable connectable)
suspendWork in interface WorkerQueue