Class ProgressiveClientFuture<V>

  • Type Parameters:
    V - The type that result from completion of this Future
    All Implemented Interfaces:
    java.util.concurrent.Future<V>, AsyncResult<V>

    public class ProgressiveClientFuture<V>
    extends ClientFuture<V>
    An optimized version of a ClientFuture that makes use of spin waits and other methods of reacting to asynchronous completion in a more timely manner.
    • Method Detail

      • get

        public V get​(long amount,
                     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<V>
        Specified by:
        get in class ClientFuture<V>
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.util.concurrent.TimeoutException
      • get

        public V get()
              throws java.lang.InterruptedException,
                     java.util.concurrent.ExecutionException
        Specified by:
        get in interface java.util.concurrent.Future<V>
        Specified by:
        get in class ClientFuture<V>
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException