Module com.spotify.futures
Package com.spotify.futures
-
Interface Summary Interface Description FutureJobInvoker<T> FuturesExtra.AsyncFunction2<Z,A,B> Implementations of this interface is used inĀFuturesExtra.syncTransform2(com.google.common.util.concurrent.ListenableFuture<A>, com.google.common.util.concurrent.ListenableFuture<B>, com.spotify.futures.FuturesExtra.Function2<Z, ? super A, ? super B>, java.util.concurrent.Executor)to asynchronously transform two values into a return value.FuturesExtra.AsyncFunction3<Z,A,B,C> FuturesExtra.AsyncFunction4<Z,A,B,C,D> FuturesExtra.AsyncFunction5<Z,A,B,C,D,E> FuturesExtra.AsyncFunction6<Z,A,B,C,D,E,F> FuturesExtra.Consumer<T> Represents an operation that accepts a single input argument and returns no result.FuturesExtra.Function2<Z,A,B> Implementations of this interface is used to synchronously transform the input values into an output value.FuturesExtra.Function3<Z,A,B,C> Implementations of this interface is used to synchronously transform the input values into an output value.FuturesExtra.Function4<Z,A,B,C,D> Implementations of this interface is used to synchronously transform the input values into an output value.FuturesExtra.Function5<Z,A,B,C,D,E> Implementations of this interface is used to synchronously transform the input values into an output value.FuturesExtra.Function6<Z,A,B,C,D,E,F> Implementations of this interface is used to synchronously transform the input values into an output value.Validator<T> Validate a value, throw an exception on invalid values. -
Class Summary Class Description ApiFuturesExtra ApiFutureToCompletableFutureWrapper<V> AsyncRetrier A helper for retrying asynchronous calls.CompletableFuturesExtra CompletableToApiFutureWrapper<V> CompletableToListenableFutureWrapper<V> ConcurrencyLimiter<T> A ConcurrencyLimiter can be used for efficiently queueing up asynchronous work to only run up to a specific limit of work concurrently.ConcurrencyLimiter.Job<T> FuturesExtra Static utility methods pertaining to theListenableFutureinterface.JoinedResults Contains references to a set of joined future values.JoinedResults.Transform ListenableFuturesExtra ListenableToCompletableFutureWrapper<V> -
Enum Summary Enum Description CompletableFuturesExtra.Identity CompletableFuturesExtra.WrapFunction JoinedResults.Null -
Exception Summary Exception Description ConcurrencyLimiter.CapacityReachedException