Class ConservativeClientFuture<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 ConservativeClientFuture<V>
    extends ClientFuture<V>
    A more conservative implementation of a ClientFuture that is better on some platforms or resource constrained hardware where high CPU usage can be more counter productive than other variants that might spin or otherwise avoid entry into states requiring thread signaling.
    • 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