Class Pool.TubePool

  • Enclosing class:
    Pool<T>

    public static final class Pool.TubePool
    extends Pool<Tube>
    Tube pool.
    • Constructor Detail

      • TubePool

        public TubePool​(Tube master)
    • Method Detail

      • create

        protected Tube create()
        Description copied from class: Pool
        Creates a new instance of object.

        This method is used when someone wants to take an object from an empty pool.

        Also note that multiple threads may call this method concurrently.

        Specified by:
        create in class Pool<Tube>
      • takeMaster

        @Deprecated
        public final Tube takeMaster()
        Deprecated.
        Expected to be used in rare cases where access to master tubeline is required and safe, such as Stub.close()."
        Returns:
        master tubeline from pool