Interface Pool<T>

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable

    public interface Pool<T>
    extends java.io.Closeable
    • Method Detail

      • prepare

        void prepare​(int count)
              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • acquire

        T acquire()
           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • release

        void release​(T t,
                     boolean close)
              throws java.lang.Exception
        Throws:
        java.lang.Exception