Class PromiseBackedFuture<V>

  • All Implemented Interfaces:
    java.util.concurrent.Future<V>

    public class PromiseBackedFuture<V>
    extends AFuture<V>
    • Nested Class Summary

    • Method Summary

      Modifier and Type Method Description
      boolean cancel​(boolean mayInterruptIfRunning)  
      V get()  
      V get​(long timeout, java.util.concurrent.TimeUnit unit)  
      boolean isCancelled()  
      boolean isDone()  
      • Methods inherited from class com.hierynomus.protocol.commons.concurrent.AFuture

        map
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PromiseBackedFuture

        public PromiseBackedFuture​(Promise<V,​?> promise)
    • Method Detail

      • cancel

        public boolean cancel​(boolean mayInterruptIfRunning)
      • isCancelled

        public boolean isCancelled()
      • isDone

        public boolean isDone()
      • get

        public V get()
              throws java.util.concurrent.ExecutionException
        Throws:
        java.util.concurrent.ExecutionException
      • get

        public V get​(long timeout,
                     java.util.concurrent.TimeUnit unit)
              throws java.util.concurrent.ExecutionException
        Throws:
        java.util.concurrent.ExecutionException