|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.spi.impl.operationexecutor.classic.DefaultScheduleQueue
public final class DefaultScheduleQueue
| Constructor Summary | |
|---|---|
DefaultScheduleQueue()
|
|
DefaultScheduleQueue(BlockingQueue normalQueue,
ConcurrentLinkedQueue priorityQueue)
|
|
| Method Summary | |
|---|---|
void |
add(Object task)
Adds an task with normal priority to this queue. |
void |
addUrgent(Object task)
Adds an task with normal priority to this queue. |
int |
normalSize()
returns the number of normal operations pending. |
int |
prioritySize()
returns the number of priority operations pending. |
int |
size()
Returns the total number of pending operations. |
Object |
take()
Takes an item from this queue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultScheduleQueue()
public DefaultScheduleQueue(BlockingQueue normalQueue,
ConcurrentLinkedQueue priorityQueue)
| Method Detail |
|---|
public void add(Object task)
ScheduleQueue
add in interface ScheduleQueuetask - the item to addpublic void addUrgent(Object task)
ScheduleQueue
addUrgent in interface ScheduleQueuetask - the item to addpublic int normalSize()
ScheduleQueue
normalSize in interface ScheduleQueuepublic int prioritySize()
ScheduleQueue
prioritySize in interface ScheduleQueuepublic int size()
ScheduleQueue
size in interface ScheduleQueue
public Object take()
throws InterruptedException
ScheduleQueue
take in interface ScheduleQueueInterruptedException - if the thread is interrupted while waiting.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||