Class AbstractProtocol.RecycledProcessors

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.concurrent.atomic.AtomicInteger size
      The current size of the pool.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Clears the recycled processors pool.
      Processor pop()
      Pops a processor from the pool.
      boolean push​(Processor processor)
      Pushes a processor to the pool.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • size

        protected final java.util.concurrent.atomic.AtomicInteger size
        The current size of the pool.
    • Constructor Detail

      • RecycledProcessors

        public RecycledProcessors​(AbstractProtocol.ConnectionHandler<?> handler)
        Creates a new recycled processors pool.
        Parameters:
        handler - The connection handler