Class RouteSegmentedConnPool.Waiter

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.concurrent.CompletableFuture

        java.util.concurrent.CompletableFuture.AsynchronousCompletionTask
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) boolean cancelled  
      (package private) Timeout requestTimeout  
      (package private) R route  
      (package private) java.lang.Object state  
      (package private) java.util.concurrent.ScheduledFuture<?> timeoutTask  
    • Constructor Summary

      Constructors 
      Constructor Description
      Waiter​(R route, Timeout t, java.lang.Object s)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PoolEntry<R,​C> get​(long timeout, java.util.concurrent.TimeUnit unit)  
      • Methods inherited from class java.util.concurrent.CompletableFuture

        acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completeAsync, completeAsync, completedFuture, completedStage, completeExceptionally, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, failedFuture, failedStage, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsync
      • Methods inherited from class java.lang.Object

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

      • route

        final R route
      • requestTimeout

        final Timeout requestTimeout
      • state

        final java.lang.Object state
      • cancelled

        volatile boolean cancelled
      • timeoutTask

        volatile java.util.concurrent.ScheduledFuture<?> timeoutTask
    • Constructor Detail

      • Waiter

        Waiter​(R route,
               Timeout t,
               java.lang.Object s)
    • Method Detail

      • get

        public PoolEntry<R,​C> get​(long timeout,
                                        java.util.concurrent.TimeUnit unit)
                                 throws java.lang.InterruptedException,
                                        java.util.concurrent.ExecutionException,
                                        java.util.concurrent.TimeoutException
        Specified by:
        get in interface java.util.concurrent.Future<PoolEntry<R,​C extends ModalCloseable>>
        Overrides:
        get in class java.util.concurrent.CompletableFuture<PoolEntry<R,​C extends ModalCloseable>>
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.util.concurrent.TimeoutException