public final class DefaultScheduleQueue extends Object implements ScheduleQueue
| Constructor and Description | 
|---|
| DefaultScheduleQueue() | 
| DefaultScheduleQueue(BlockingQueue normalQueue,
                    ConcurrentLinkedQueue priorityQueue) | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
public DefaultScheduleQueue()
public DefaultScheduleQueue(BlockingQueue normalQueue, ConcurrentLinkedQueue priorityQueue)
public void add(Object task)
ScheduleQueueadd in interface ScheduleQueuetask - the item to addpublic void addUrgent(Object task)
ScheduleQueueaddUrgent in interface ScheduleQueuetask - the item to addpublic int normalSize()
ScheduleQueuenormalSize in interface ScheduleQueuepublic int prioritySize()
ScheduleQueueprioritySize in interface ScheduleQueuepublic int size()
ScheduleQueuesize in interface ScheduleQueuepublic Object take() throws InterruptedException
ScheduleQueuetake in interface ScheduleQueueInterruptedException - if the thread is interrupted while waiting.Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.