Interface AsyncPool<T>

  • All Known Implementing Classes:
    FixedAsyncPool

    public interface AsyncPool<T>
    Author:
    Sergey Polovko
    • Method Detail

      • acquire

        CompletableFuture<T> acquire​(Duration timeout)
        Zero timeout will be treated as "return object immediately or fail".
      • release

        void release​(T object)
      • close

        void close()
      • getAcquiredCount

        int getAcquiredCount()
      • getIdleCount

        int getIdleCount()
      • getPendingAcquireCount

        int getPendingAcquireCount()