|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
BoundedPacketQueue
Method Summary | |
void |
clear()
clear the contents from the Queue |
void |
close()
close and remove this queue |
Packet |
dequeue()
|
Packet |
dequeue(long timeInMillis)
Dequeues a Packet from the head of the queue |
Packet |
dequeueNoWait()
dequeues a Packet from the head of the queue |
void |
enqueue(Packet packet)
Enqueue a Packet to this queue |
void |
enqueueNoBlock(Packet packet)
Enqueue a Packet without checking usage limits |
java.util.List |
getContents()
Retrieve a shallow copy of the contents as a list |
java.lang.String |
getName()
|
boolean |
isEmpty()
|
boolean |
isStarted()
|
int |
size()
|
void |
start()
enable dequeueing |
void |
stop()
disable dequeueing |
Method Detail |
public java.lang.String getName()
public int size()
public void close()
public void enqueueNoBlock(Packet packet) throws JMSException
packet
-
JMSException
public void enqueue(Packet packet) throws java.lang.InterruptedException, JMSException
packet
-
java.lang.InterruptedException
JMSException
public Packet dequeue() throws java.lang.InterruptedException, JMSException
java.lang.InterruptedException
JMSException
public Packet dequeue(long timeInMillis) throws java.lang.InterruptedException, JMSException
timeInMillis
- time to wait for a Packet to be available
java.lang.InterruptedException
JMSException
public Packet dequeueNoWait() throws java.lang.InterruptedException, JMSException
java.lang.InterruptedException
JMSException
public boolean isStarted()
public void stop()
public void start()
public boolean isEmpty()
public void clear()
public java.util.List getContents()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |