Package com.palantir.atlasdb.futures
Interface FuturesCombiner
-
- All Superinterfaces:
AutoCloseable
public interface FuturesCombiner extends AutoCloseable
Interface which provides a wrapping over static methods inAtlasFutures
which need anExecutorService
. This interface is useful when considering how to easily have a custom resource management with minimal changes to the existing code.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T,R>
com.google.common.util.concurrent.ListenableFuture<Map<T,R>>allAsMap(Map<T,com.google.common.util.concurrent.ListenableFuture<Optional<R>>> inputToListenableFutureMap)
Wraps theAtlasFutures#allAsMap(Map, ExecutorService)
.void
close()
-
-
-
Method Detail
-
allAsMap
<T,R> com.google.common.util.concurrent.ListenableFuture<Map<T,R>> allAsMap(Map<T,com.google.common.util.concurrent.ListenableFuture<Optional<R>>> inputToListenableFutureMap)
Wraps theAtlasFutures#allAsMap(Map, ExecutorService)
.
-
close
void close()
- Specified by:
close
in interfaceAutoCloseable
-
-