Package org.jgroups.util
Class MessageCache
- java.lang.Object
-
- org.jgroups.util.MessageCache
-
public class MessageCache extends java.lang.Object
A cache associating members and messages- Since:
- 5.3.2
- Author:
- Bela Ban
-
-
Constructor Summary
Constructors Constructor Description MessageCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageCache
add(Address sender, Message msg)
MessageCache
clear()
java.util.Collection<Message>
drain(Address sender)
boolean
isEmpty()
int
size()
Returns a count of all messagesjava.lang.String
toString()
-
-
-
Method Detail
-
add
public MessageCache add(Address sender, Message msg)
-
clear
public MessageCache clear()
-
size
public int size()
Returns a count of all messages
-
isEmpty
public boolean isEmpty()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-