Class ExtendedSettableFuture<V>

  • All Implemented Interfaces:
    com.google.common.util.concurrent.ListenableFuture<V>, Future<V>

    public final class ExtendedSettableFuture<V>
    extends com.google.common.util.concurrent.AbstractFuture<V>
    • Method Detail

      • set

        public boolean set​(@Nullable
                           V value)
        Overrides:
        set in class com.google.common.util.concurrent.AbstractFuture<V>
      • setException

        public boolean setException​(Throwable throwable)
        Overrides:
        setException in class com.google.common.util.concurrent.AbstractFuture<V>
      • setAsync

        public void setAsync​(com.google.common.util.concurrent.ListenableFuture<? extends V> delegate)
        Sets this current future with the result of the delegate.

        Values and exceptions are both propagated to this Future. If this Future is cancelled, than the delegate will also be cancelled with the same interrupt flag.