|
|||||||||||
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 |
List |
getContents()
Retrieve a shallow copy of the contents as a list |
String |
getName()
|
boolean |
isEmpty()
|
boolean |
isStarted()
|
int |
size()
|
void |
start()
enable dequeueing |
void |
stop()
disable dequeueing |
Method Detail |
public String getName()
public int size()
public void close()
public void enqueueNoBlock(Packet packet) throws JMSException
packet
-
JMSException
public void enqueue(Packet packet) throws InterruptedException, JMSException
packet
-
InterruptedException
JMSException
public Packet dequeue() throws InterruptedException, JMSException
InterruptedException
JMSException
public Packet dequeue(long timeInMillis) throws InterruptedException, JMSException
timeInMillis
- time to wait for a Packet to be available
InterruptedException
JMSException
public Packet dequeueNoWait() throws InterruptedException, JMSException
InterruptedException
JMSException
public boolean isStarted()
public void stop()
public void start()
public boolean isEmpty()
public void clear()
public List getContents()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |