Package org.jgroups.protocols
Class UNICAST3.MessageCache
- java.lang.Object
-
- org.jgroups.protocols.UNICAST3.MessageCache
-
- Enclosing class:
- UNICAST3
protected class UNICAST3.MessageCache extends java.lang.Object
Used to queue messages until aUNICAST3.ReceiverEntry
has been created. Queued messages are then removed from the cache and added to the ReceiverEntry
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MessageCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UNICAST3.MessageCache
cache(Address sender, Message msg)
protected UNICAST3.MessageCache
clear()
protected java.util.List<Message>
drain(Address sender)
protected boolean
isEmpty()
protected int
size()
Returns a count of all messagesjava.lang.String
toString()
-
-
-
Method Detail
-
cache
protected UNICAST3.MessageCache cache(Address sender, Message msg)
-
clear
protected UNICAST3.MessageCache clear()
-
size
protected int size()
Returns a count of all messages
-
isEmpty
protected boolean isEmpty()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-