Modifier and Type | Method and Description |
---|---|
static <V> void |
addCallback(ApiFuture<V> future,
ApiFutureCallback<? super V> callback)
Deprecated.
|
static <V> void |
addCallback(ApiFuture<V> future,
ApiFutureCallback<? super V> callback,
Executor executor) |
static <V> ApiFuture<List<V>> |
allAsList(Iterable<? extends ApiFuture<? extends V>> futures) |
static <V,X extends Throwable> |
catching(ApiFuture<? extends V> input,
Class<X> exceptionType,
ApiFunction<? super X,? extends V> callback)
Deprecated.
|
static <V,X extends Throwable> |
catching(ApiFuture<? extends V> input,
Class<X> exceptionType,
ApiFunction<? super X,? extends V> callback,
Executor executor) |
static <V,X extends Throwable> |
catchingAsync(ApiFuture<V> input,
Class<X> exceptionType,
ApiAsyncFunction<? super X,V> callback,
Executor executor) |
static <V> ApiFuture<V> |
immediateCancelledFuture() |
static <V> ApiFuture<V> |
immediateFailedFuture(Throwable throwable) |
static <V> ApiFuture<V> |
immediateFuture(V value) |
static <V,X> ApiFuture<X> |
transform(ApiFuture<? extends V> input,
ApiFunction<? super V,? extends X> function)
Deprecated.
|
static <V,X> ApiFuture<X> |
transform(ApiFuture<? extends V> input,
ApiFunction<? super V,? extends X> function,
Executor executor) |
static <I,O> ApiFuture<O> |
transformAsync(ApiFuture<I> input,
ApiAsyncFunction<I,O> function)
Deprecated.
|
static <I,O> ApiFuture<O> |
transformAsync(ApiFuture<I> input,
ApiAsyncFunction<I,O> function,
Executor executor) |
@Deprecated public static <V> void addCallback(ApiFuture<V> future, ApiFutureCallback<? super V> callback)
public static <V> void addCallback(ApiFuture<V> future, ApiFutureCallback<? super V> callback, Executor executor)
@Deprecated public static <V,X extends Throwable> ApiFuture<V> catching(ApiFuture<? extends V> input, Class<X> exceptionType, ApiFunction<? super X,? extends V> callback)
public static <V,X extends Throwable> ApiFuture<V> catching(ApiFuture<? extends V> input, Class<X> exceptionType, ApiFunction<? super X,? extends V> callback, Executor executor)
@BetaApi public static <V,X extends Throwable> ApiFuture<V> catchingAsync(ApiFuture<V> input, Class<X> exceptionType, ApiAsyncFunction<? super X,V> callback, Executor executor)
public static <V> ApiFuture<V> immediateFuture(V value)
public static <V> ApiFuture<V> immediateCancelledFuture()
@Deprecated public static <V,X> ApiFuture<X> transform(ApiFuture<? extends V> input, ApiFunction<? super V,? extends X> function)
public static <V,X> ApiFuture<X> transform(ApiFuture<? extends V> input, ApiFunction<? super V,? extends X> function, Executor executor)
public static <V> ApiFuture<List<V>> allAsList(Iterable<? extends ApiFuture<? extends V>> futures)
@Deprecated public static <I,O> ApiFuture<O> transformAsync(ApiFuture<I> input, ApiAsyncFunction<I,O> function)
public static <I,O> ApiFuture<O> transformAsync(ApiFuture<I> input, ApiAsyncFunction<I,O> function, Executor executor)