Class TransformedFuture<T,​V>

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

    public class TransformedFuture<T,​V>
    extends AFuture<V>
    • Nested Class Summary

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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
    • Field Detail

      • wrapped

        private java.util.concurrent.Future<T> wrapped
    • Constructor Detail

      • TransformedFuture

        public TransformedFuture​(java.util.concurrent.Future<T> wrapped,
                                 AFuture.Function<T,​V> function)
    • Method Detail

      • cancel

        public boolean cancel​(boolean mayInterruptIfRunning)
      • isCancelled

        public boolean isCancelled()
      • isDone

        public boolean isDone()
      • get

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