|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.activemq.io.util.MemoryBoundedQueue
org.activemq.io.util.MemoryBoundedPrioritizedQueue
| Field Summary |
| Fields inherited from class org.activemq.io.util.MemoryBoundedQueue |
closed, inLock, outLock, stopped, WAIT_TIMEOUT |
| Constructor Summary | |
MemoryBoundedPrioritizedQueue(MemoryBoundedQueueManager manager,
java.lang.String name)
Constructor |
|
| Method Summary | |
void |
clear()
remove any MemoryManageables in the queue |
MemoryManageable |
dequeue()
|
MemoryManageable |
dequeueNoWait()
dequeues a MemoryManageable from the head of the queue |
void |
enqueueAllFirstNoBlock(java.util.List packets)
Enqueue an array of packets to the head of the queue with total disregard for memory constraints |
void |
enqueueFirstNoBlock(MemoryManageable packet)
Enqueue a packet to the head of the queue with total disregard for memory constraints |
void |
enqueueNoBlock(MemoryManageable packet)
Enqueue a MemoryManageable without checking memory usage limits |
MemoryManageable |
get(int index)
retrieve a MemoryManageable at an indexed position in the queue |
java.util.List |
getContents()
Retrieve a shallow copy of the contents as a list |
boolean |
isEmpty()
|
boolean |
remove(MemoryManageable packet)
Remove a packet from the queue |
MemoryManageable |
remove(java.lang.Object id)
Remove a MemoryManageable by it's id |
int |
size()
|
| Methods inherited from class org.activemq.io.util.MemoryBoundedQueue |
close, decrementMemoryUsed, dequeue, enqueue, enqueueFirst, getLocalMemoryUsedByThisQueue, getName, incrementMemoryUsed, isStarted, start, stop, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MemoryBoundedPrioritizedQueue(MemoryBoundedQueueManager manager,
java.lang.String name)
name - manager - | Method Detail |
public int size()
size in class MemoryBoundedQueuepublic void enqueueNoBlock(MemoryManageable packet)
enqueueNoBlock in class MemoryBoundedQueuepacket - public final void enqueueFirstNoBlock(MemoryManageable packet)
enqueueFirstNoBlock in class MemoryBoundedQueuepacket - public void enqueueAllFirstNoBlock(java.util.List packets)
enqueueAllFirstNoBlock in class MemoryBoundedQueuepackets -
public MemoryManageable dequeue()
throws java.lang.InterruptedException
dequeue in class MemoryBoundedQueuejava.lang.InterruptedException
public MemoryManageable dequeueNoWait()
throws java.lang.InterruptedException
dequeueNoWait in class MemoryBoundedQueuejava.lang.InterruptedExceptionpublic boolean remove(MemoryManageable packet)
remove in class MemoryBoundedQueuepacket -
public MemoryManageable remove(java.lang.Object id)
remove in class MemoryBoundedQueueid -
public void clear()
clear in class MemoryBoundedQueuepublic boolean isEmpty()
isEmpty in class MemoryBoundedQueuepublic MemoryManageable get(int index)
get in class MemoryBoundedQueueindex -
public java.util.List getContents()
getContents in class MemoryBoundedQueue
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||