Interface FuturesCombiner

  • All Superinterfaces:
    AutoCloseable

    public interface FuturesCombiner
    extends AutoCloseable
    Interface which provides a wrapping over static methods in AtlasFutures which need an ExecutorService. 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 the AtlasFutures#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 the AtlasFutures#allAsMap(Map, ExecutorService).