Class FutureIterables


  • @Beta
    public class FutureIterables
    extends Object
    functions related to or replacing those in Iterables dealing with Futures
    • Constructor Detail

      • FutureIterables

        public FutureIterables()
    • Method Detail

      • transformParallel

        public static <F,​T> Iterable<T> transformParallel​(Iterable<F> fromIterable,
                                                                com.google.common.base.Function<? super F,​com.google.common.util.concurrent.ListenableFuture<? extends T>> function,
                                                                com.google.common.util.concurrent.ListeningExecutorService exec,
                                                                @Nullable
                                                                Long maxTime,
                                                                Logger logger,
                                                                String logPrefix)
      • transformParallel

        public static <F,​T> Iterable<T> transformParallel​(Iterable<F> fromIterable,
                                                                com.google.common.base.Function<? super F,​com.google.common.util.concurrent.ListenableFuture<? extends T>> function,
                                                                com.google.common.util.concurrent.ListeningExecutorService exec,
                                                                @Nullable
                                                                Long maxTime,
                                                                Logger logger,
                                                                String logPrefix,
                                                                BackoffLimitedRetryHandler retryHandler,
                                                                int maxRetries)