Class AbstractFuture<V>

  • Type Parameters:
    V -
    All Implemented Interfaces:
    Future<V>, java.util.concurrent.Future<V>
    Direct Known Subclasses:
    CompleteFuture, DefaultPromise, VoidChannelPromise

    public abstract class AbstractFuture<V>
    extends java.lang.Object
    implements Future<V>
    Abstract Future implementation which does not allow for cancellation.
    • Constructor Detail

      • AbstractFuture

        public AbstractFuture()
    • Method Detail

      • get

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

        public V 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<V>
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.util.concurrent.TimeoutException