Class MessagesStats


  • public class MessagesStats
    extends Object
    Statistics on messages in this queue.
    • Method Detail

      • getClaimed

        public int getClaimed()
        Returns:
        The number of claimed messages in this queue.
      • getFree

        public int getFree()
        Returns:
        The number of free messages in this queue.
      • getTotal

        public int getTotal()
        Returns:
        The total number of messages in this queue.
      • getOldest

        public com.google.common.base.Optional<Aged> getOldest()
        Returns:
        Statistics on the oldest messages in this queue. If the value of total is 0, then oldest is not present.
      • getNewest

        public com.google.common.base.Optional<Aged> getNewest()
        Returns:
        Statistics on the newest messages in this queue. If the value of total is 0, then newest is not present.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • string

        protected com.google.common.base.MoreObjects.ToStringHelper string()