|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.bam.mailbox.MailboxQueue
public final class MailboxQueue
See http://www.cs.rochester.edu/u/michael/PODC96.html
| Constructor Summary | |
|---|---|
MailboxQueue(java.lang.String name,
int discardMaxSize,
int blockMaxSize,
long expireTimeout)
|
|
| Method Summary | |
|---|---|
Packet |
dequeue()
Returns the first packet from the queue. |
void |
enqueue(Packet packet)
|
int |
getSize()
Returns the number of packets in the queue. |
boolean |
isEmpty()
Returns true if the queue is empty |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MailboxQueue(java.lang.String name,
int discardMaxSize,
int blockMaxSize,
long expireTimeout)
| Method Detail |
|---|
public final int getSize()
public final boolean isEmpty()
public final void enqueue(Packet packet)
public final Packet dequeue()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||