Class MessageCache


  • public class MessageCache
    extends java.lang.Object
    A cache associating members and messages
    Since:
    5.3.2
    Author:
    Bela Ban
    • Field Detail

      • map

        protected final java.util.Map<Address,​java.util.Queue<Message>> map
      • is_empty

        protected volatile boolean is_empty
    • Constructor Detail

      • MessageCache

        public MessageCache()
    • Method Detail

      • drain

        public java.util.Collection<Message> drain​(Address sender)
      • size

        public int size()
        Returns a count of all messages
      • isEmpty

        public boolean isEmpty()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object