|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jgroups.util.MessageTransferQueue
public class MessageTransferQueue
Concurrent queue containing messages. When the max capacity is reached, producers will block until the capacity drops below the max capacity. The max capacity and size of the queue is defined as the accumulated length of the messages. Null messages are not permitted.
Constructor Summary | |
---|---|
MessageTransferQueue(int max_capacity)
|
Method Summary | |
---|---|
Message |
poll()
|
int |
put(Message msg)
|
Message |
take()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageTransferQueue(int max_capacity)
max_capacity
- The max capacity in bytesMethod Detail |
---|
public int put(Message msg)
public Message take()
public Message poll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |