Uses of Interface
com.google.api.core.ApiFuture
Packages that use ApiFuture
-
Uses of ApiFuture in com.google.api.core
Classes in com.google.api.core that implement ApiFutureModifier and TypeClassDescriptionclassAbstract implementation of ApiFuture that mirrorsAbstractFuturein Guava.classclassINTERNAL USE ONLY.final classAnApiFuturewhose result can be set.Methods in com.google.api.core that return ApiFutureModifier and TypeMethodDescriptionCreates a newApiFuturewhose value is a list containing the values of all its input futures, if all succeed.Returns an output Future to use in place of the given input.ApiFutures.catching(ApiFuture<? extends V> input, Class<X> exceptionType, ApiFunction<? super X, ? extends V> callback) Deprecated.Use the overload that requires an executor.ApiFutures.catching(ApiFuture<? extends V> input, Class<X> exceptionType, ApiFunction<? super X, ? extends V> callback, Executor executor) Returns anApiFuturewhose result is taken from the given primary input or, if the primary input fails with the given exceptionType, from the result provided by the callback.ApiFutures.catchingAsync(ApiFuture<V> input, Class<X> exceptionType, ApiAsyncFunction<? super X, V> callback, Executor executor) Returns aApiFuturewhose result is taken from the given primary input or, if the primary input fails with the given exceptionType, from the result provided by the callback.static <V> ApiFuture<V>ApiFutures.immediateCancelledFuture()Creates aApiFuturewhich is cancelled immediately upon construction, so thatisCancelled()always returnstrue.static <V> ApiFuture<V>ApiFutures.immediateFailedFuture(Throwable throwable) Returns aApiFuturewhich has an exception set immediately upon construction.static <V> ApiFuture<V>ApiFutures.immediateFuture(V value) Creates aApiFuturewhich has its value set immediately upon construction.ApiFutures.successfulAsList(Iterable<? extends ApiFuture<? extends V>> futures) Creates a newApiFuturewhose value is a list containing the values of all its successful input futures.static <V,X> ApiFuture<X> ApiFutures.transform(ApiFuture<? extends V> input, ApiFunction<? super V, ? extends X> function) Deprecated.static <V,X> ApiFuture<X> ApiFutures.transform(ApiFuture<? extends V> input, ApiFunction<? super V, ? extends X> function, Executor executor) Returns a newApiFuturewhose result is derived from the result of the givenApiFuture.static <I,O> ApiFuture<O> ApiFutures.transformAsync(ApiFuture<I> input, ApiAsyncFunction<I, O> function) Deprecated.Use ApiFutures.transformAsync(ApiFuture, ApiAsyncFunction, Executor), the overload that requires an executor.static <I,O> ApiFuture<O> ApiFutures.transformAsync(ApiFuture<I> input, ApiAsyncFunction<I, O> function, Executor executor) Returns a newApiFuturewhose result is asynchronously derived from the result of the givenApiFuture.Methods in com.google.api.core with parameters of type ApiFutureModifier and TypeMethodDescriptionstatic <V> voidApiFutures.addCallback(ApiFuture<V> future, ApiFutureCallback<? super V> callback) Deprecated.static <V> voidApiFutures.addCallback(ApiFuture<V> future, ApiFutureCallback<? super V> callback, Executor executor) Registers a callback to be run when theApiFuture's computation is complete or, if the computation is already complete, immediately.ApiFutures.catching(ApiFuture<? extends V> input, Class<X> exceptionType, ApiFunction<? super X, ? extends V> callback) Deprecated.ApiFutures.catching(ApiFuture<? extends V> input, Class<X> exceptionType, ApiFunction<? super X, ? extends V> callback, Executor executor) Returns anApiFuturewhose result is taken from the given primary input or, if the primary input fails with the given exceptionType, from the result provided by the callback.ApiFutures.catchingAsync(ApiFuture<V> input, Class<X> exceptionType, ApiAsyncFunction<? super X, V> callback, Executor executor) Returns aApiFuturewhose result is taken from the given primary input or, if the primary input fails with the given exceptionType, from the result provided by the callback.static <V,X> ApiFuture<X> ApiFutures.transform(ApiFuture<? extends V> input, ApiFunction<? super V, ? extends X> function) Deprecated.static <V,X> ApiFuture<X> ApiFutures.transform(ApiFuture<? extends V> input, ApiFunction<? super V, ? extends X> function, Executor executor) Returns a newApiFuturewhose result is derived from the result of the givenApiFuture.static <I,O> ApiFuture<O> ApiFutures.transformAsync(ApiFuture<I> input, ApiAsyncFunction<I, O> function) Deprecated.Use ApiFutures.transformAsync(ApiFuture, ApiAsyncFunction, Executor), the overload that requires an executor.static <I,O> ApiFuture<O> ApiFutures.transformAsync(ApiFuture<I> input, ApiAsyncFunction<I, O> function, Executor executor) Returns a newApiFuturewhose result is asynchronously derived from the result of the givenApiFuture.Method parameters in com.google.api.core with type arguments of type ApiFutureModifier and TypeMethodDescriptionCreates a newApiFuturewhose value is a list containing the values of all its input futures, if all succeed.ApiFutures.successfulAsList(Iterable<? extends ApiFuture<? extends V>> futures) Creates a newApiFuturewhose value is a list containing the values of all its successful input futures.Constructors in com.google.api.core with parameters of type ApiFutureModifierConstructorDescriptionApiFutureToListenableFuture(ApiFuture<V> apiFuture) ForwardingApiFuture(ApiFuture<T> delegate)