Class BoshSessionCache

  • public class BoshSessionCache
    extends java.lang.Object
    Describe class BoshSessionCache here.
    Created: Mon Feb 25 23:54:57 2008
    Artur Hefczyc
    • Field Detail


        public static final java.lang.String RESOURCE_BIND_ID
        See Also:
        Constant Field Values
      • jid_msg_start

        protected java.util.Map<java.lang.String,​java.lang.Long> jid_msg_start
        Cached time of the first message to/from some jid to speedup message caching processing
    • Constructor Detail

      • BoshSessionCache

        public BoshSessionCache()
        Creates a new BoshSessionCache instance.
    • Method Detail

      • add

        public void add​(java.lang.String id,
                        java.util.List<Element> data)
      • addFromMessage

        public void addFromMessage​(Element message)
      • addPresence

        public void addPresence​(Element presence)
      • addRoster

        public void addRoster​(Element roster)
      • addToMessage

        public void addToMessage​(Element message)
      • get

        public java.util.List<Element> get​(java.lang.String id)
      • getAll

        public java.util.List<Element> getAll()
      • getAllPresences

        public java.util.List<Element> getAllPresences()
      • getPresence

        public java.util.List<Element> getPresence​(java.lang.String... from)
      • remove

        public java.util.List<Element> remove​(java.lang.String id)
      • set

        public void set​(java.lang.String id,
                        java.util.List<Element> data)