Class MaxOneThreadPerSender.Entry

  • Enclosing class:
    MaxOneThreadPerSender

    protected class MaxOneThreadPerSender.Entry
    extends java.lang.Object
    • Field Detail

      • lock

        protected final java.util.concurrent.locks.Lock lock
      • mcast

        protected final boolean mcast
      • sender

        protected final Address sender
      • cluster_name

        protected final AsciiString cluster_name
      • adders

        protected final java.util.concurrent.atomic.AtomicInteger adders
      • submitted_batches

        protected final java.util.concurrent.atomic.LongAdder submitted_batches
      • queued_msgs

        protected final java.util.concurrent.atomic.LongAdder queued_msgs
      • DEFAULT_INITIAL_CAPACITY

        protected static final int DEFAULT_INITIAL_CAPACITY
        See Also:
        Constant Field Values
    • Constructor Detail

    • Method Detail

      • process

        protected boolean process​(Message msg,
                                  boolean loopback)
      • process

        protected boolean process​(MessageBatch batch,
                                  boolean loopback)
      • submit

        protected boolean submit​(boolean loopback)
      • workAvailable

        protected boolean workAvailable()
        Called by MaxOneThreadPerSender.BatchHandlerLoop. Atomically transfer messages from the entry.msg_queue to entry.batch and returns true if messages were transferred.
      • toString

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