Uses of Interface
com.spotify.futures.FuturesExtra.Consumer
-
-
Uses of FuturesExtra.Consumer in com.spotify.futures
Methods in com.spotify.futures with parameters of type FuturesExtra.Consumer Modifier and Type Method Description static <T> voidFuturesExtra. addCallback(com.google.common.util.concurrent.ListenableFuture<T> future, FuturesExtra.Consumer<? super T> success, FuturesExtra.Consumer<java.lang.Throwable> failure, java.util.concurrent.Executor executor)A lambda-friendly way to attach callbacks to aListenableFuture.static <T> voidFuturesExtra. addFailureCallback(com.google.common.util.concurrent.ListenableFuture<T> future, FuturesExtra.Consumer<java.lang.Throwable> consumer, java.util.concurrent.Executor executor)A lambda-friendly way to attach a callback to aListenableFuture.static <T> voidFuturesExtra. addSuccessCallback(com.google.common.util.concurrent.ListenableFuture<T> future, FuturesExtra.Consumer<? super T> consumer, java.util.concurrent.Executor executor)A lambda-friendly way to attach a callback to aListenableFuture.
-