Send feedback
Class ApiFutures (2.7.0)
bookmark_border bookmark
Stay organized with collections
Save and categorize content based on your preferences.
On this page Inheritance Inherited Members Static Methods <I,O>transformAsync(ApiFuture<I> input, ApiAsyncFunction<I,O> function) <I,O>transformAsync(ApiFuture<I> input, ApiAsyncFunction<I,O> function, Executor executor) <V,X>catching(ApiFuture<? extends V> input, Class<X> exceptionType, ApiFunction<? super X,? extends V> callback) <V,X>catching(ApiFuture<? extends V> input, Class<X> exceptionType, ApiFunction<? super X,? extends V> callback, Executor executor) <V,X>catchingAsync(ApiFuture<V> input, Class<X> exceptionType, ApiAsyncFunction<? super X,V> callback, Executor executor) <V,X>transform(ApiFuture<? extends V> input, ApiFunction<? super V,? extends X> function) <V,X>transform(ApiFuture<? extends V> input, ApiFunction<? super V,? extends X> function, Executor executor) <V>addCallback(ApiFuture<V> future, ApiFutureCallback<? super V> callback) <V>addCallback(ApiFuture<V> future, ApiFutureCallback<? super V> callback, Executor executor) <V>allAsList(Iterable<? extends ApiFuture<? extends V>> futures) <V>immediateCancelledFuture() <V>immediateFailedFuture(Throwable throwable) <V>immediateFuture(V value) <V>successfulAsList(Iterable<? extends ApiFuture<? extends V>> futures)
Version 2.7.0 keyboard_arrow_down
public final class ApiFutures
Static utility methods for the ApiFuture interface.
Inherited Members
Static Methods
public static ApiFuture<O> <I , O>transformAsync ( ApiFuture<I> input , ApiAsyncFunction<I , O > function )
public static ApiFuture<O> <I , O>transformAsync ( ApiFuture<I> input , ApiAsyncFunction<I , O > function , Executor executor )
<V,X>catching(ApiFuture<? extends V> input, Class<X> exceptionType, ApiFunction<? super X,? extends V> callback)
public static ApiFuture<V> <V , X>catching ( ApiFuture <? extends V > input , Class<X> exceptionType , ApiFunction <? super X , ? extends V > callback )
<V,X>catching(ApiFuture<? extends V> input, Class<X> exceptionType, ApiFunction<? super X,? extends V> callback, Executor executor)
public static ApiFuture<V> <V , X>catching ( ApiFuture <? extends V > input , Class<X> exceptionType , ApiFunction <? super X , ? extends V > callback , Executor executor )
<V,X>catchingAsync(ApiFuture<V> input, Class<X> exceptionType, ApiAsyncFunction<? super X,V> callback, Executor executor)
public static ApiFuture<V> <V , X>catchingAsync ( ApiFuture<V> input , Class<X> exceptionType , ApiAsyncFunction <? super X , V > callback , Executor executor )
public static ApiFuture<X> <V , X>transform ( ApiFuture <? extends V > input , ApiFunction <? super V , ? extends X > function )
public static ApiFuture<X> <V , X>transform ( ApiFuture <? extends V > input , ApiFunction <? super V , ? extends X > function , Executor executor )
<V>addCallback(ApiFuture<V> future, ApiFutureCallback<? super V> callback)
public static void <V>addCallback ( ApiFuture<V> future , ApiFutureCallback <? super V > callback )
<V>addCallback(ApiFuture<V> future, ApiFutureCallback<? super V> callback, Executor executor)
public static void <V>addCallback ( ApiFuture<V> future , ApiFutureCallback <? super V > callback , Executor executor )
<V>allAsList(Iterable<? extends ApiFuture<? extends V>> futures)
public static ApiFuture<List<V> > <V>allAsList ( Iterable <? extends ApiFuture <? extends V >> futures )
Parameter Name Description futures
Iterable <? extends com.google.api.core.ApiFuture <? extends V >>
public static ApiFuture<V> <V>immediateCancelledFuture ()
public static ApiFuture<V> <V>immediateFailedFuture ( Throwable throwable )
public static ApiFuture<V> <V>immediateFuture ( V value )
Parameter Name Description value
V
<V>successfulAsList(Iterable<? extends ApiFuture<? extends V>> futures)
public static ApiFuture<List<V> > <V>successfulAsList ( Iterable <? extends ApiFuture <? extends V >> futures )
Parameter Name Description futures
Iterable <? extends com.google.api.core.ApiFuture <? extends V >>
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-05 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[],[]]