@Beta public class FutureIterables extends Object
Iterables
dealing with FuturesConstructor and Description |
---|
FutureIterables() |
Modifier and Type | Method and Description |
---|---|
static <T> Map<T,Exception> |
awaitCompletion(Map<T,? extends Future<?>> responses,
ExecutorService exec,
Long maxTime,
Logger logger,
String logPrefix) |
protected static boolean |
timeOut(long start,
Long maxTime) |
static <F,T> Iterable<T> |
transformParallel(Iterable<F> fromIterable,
com.google.common.base.Function<? super F,Future<T>> function) |
static <F,T> Iterable<T> |
transformParallel(Iterable<F> fromIterable,
com.google.common.base.Function<? super F,Future<T>> function,
ExecutorService exec,
Long maxTime) |
static <F,T> Iterable<T> |
transformParallel(Iterable<F> fromIterable,
com.google.common.base.Function<? super F,Future<T>> function,
ExecutorService exec,
Long maxTime,
Logger logger,
String logPrefix) |
static <F,T> Iterable<T> |
transformParallel(Iterable<F> fromIterable,
com.google.common.base.Function<? super F,Future<T>> function,
ExecutorService exec,
Long maxTime,
Logger logger,
String logPrefix,
BackoffLimitedRetryHandler retryHandler,
int maxRetries) |
static <T> Iterable<T> |
unwrap(Iterable<Future<T>> values) |
public static <F,T> Iterable<T> transformParallel(Iterable<F> fromIterable, com.google.common.base.Function<? super F,Future<T>> function)
public static <F,T> Iterable<T> transformParallel(Iterable<F> fromIterable, com.google.common.base.Function<? super F,Future<T>> function, ExecutorService exec, @Nullable Long maxTime)
public static <F,T> Iterable<T> transformParallel(Iterable<F> fromIterable, com.google.common.base.Function<? super F,Future<T>> function, ExecutorService exec, @Nullable Long maxTime, Logger logger, String logPrefix)
public static <F,T> Iterable<T> transformParallel(Iterable<F> fromIterable, com.google.common.base.Function<? super F,Future<T>> function, ExecutorService exec, @Nullable Long maxTime, Logger logger, String logPrefix, BackoffLimitedRetryHandler retryHandler, int maxRetries)
public static <T> Map<T,Exception> awaitCompletion(Map<T,? extends Future<?>> responses, ExecutorService exec, @Nullable Long maxTime, Logger logger, String logPrefix)
protected static boolean timeOut(long start, Long maxTime)
Copyright © 2009-2012 jclouds. All Rights Reserved.