Skip navigation links
A C D E F G H I J L M N O R S T U V W 

A

accept(V, Throwable) - Method in class com.spotify.futures.CompletableToListenableFutureWrapper
 
accept(T) - Method in interface com.spotify.futures.FuturesExtra.Consumer
Performs this operation on the given argument.
addCallback(ListenableFuture<T>, FuturesExtra.Consumer<? super T>, FuturesExtra.Consumer<Throwable>) - Static method in class com.spotify.futures.FuturesExtra
A lambda-friendly way to attach callbacks to a ListenableFuture.
addFailureCallback(ListenableFuture<T>, FuturesExtra.Consumer<Throwable>) - Static method in class com.spotify.futures.FuturesExtra
A lambda-friendly way to attach a callback to a ListenableFuture.
addSuccessCallback(ListenableFuture<T>, FuturesExtra.Consumer<? super T>) - Static method in class com.spotify.futures.FuturesExtra
A lambda-friendly way to attach a callback to a ListenableFuture.
apply(Object) - Method in enum com.spotify.futures.CompletableFuturesExtra.Identity
 
apply(Object) - Method in enum com.spotify.futures.CompletableFuturesExtra.WrapFunction
 
apply(A, B) - Method in interface com.spotify.futures.FuturesExtra.AsyncFunction2
Create and return a ListenableFuture that will execute combining a and b into some sort of result.
apply(A, B, C) - Method in interface com.spotify.futures.FuturesExtra.AsyncFunction3
 
apply(A, B, C, D) - Method in interface com.spotify.futures.FuturesExtra.AsyncFunction4
 
apply(A, B, C, D, E) - Method in interface com.spotify.futures.FuturesExtra.AsyncFunction5
 
apply(A, B, C, D, E, F) - Method in interface com.spotify.futures.FuturesExtra.AsyncFunction6
 
apply(A, B) - Method in interface com.spotify.futures.FuturesExtra.Function2
Combine the inputs into the returned output
apply(A, B, C) - Method in interface com.spotify.futures.FuturesExtra.Function3
 
apply(A, B, C, D) - Method in interface com.spotify.futures.FuturesExtra.Function4
 
apply(A, B, C, D, E) - Method in interface com.spotify.futures.FuturesExtra.Function5
 
apply(A, B, C, D, E, F) - Method in interface com.spotify.futures.FuturesExtra.Function6
 
apply(List<Object>) - Method in class com.spotify.futures.JoinedResults.Transform
 
AsyncRetrier - Class in com.spotify.futures
A helper for retrying asynchronous calls.
AsyncRetrier(ScheduledExecutorService) - Constructor for class com.spotify.futures.AsyncRetrier
 
asyncTransform(ListenableFuture<I>, AsyncFunction<? super I, ? extends O>) - Static method in class com.spotify.futures.FuturesExtra
 
asyncTransform2(ListenableFuture<A>, ListenableFuture<B>, FuturesExtra.AsyncFunction2<Z, ? super A, ? super B>) - Static method in class com.spotify.futures.FuturesExtra
Transform the input futures into a single future, using the provided transform function.
asyncTransform3(ListenableFuture<A>, ListenableFuture<B>, ListenableFuture<C>, FuturesExtra.AsyncFunction3<Z, ? super A, ? super B, ? super C>) - Static method in class com.spotify.futures.FuturesExtra
Transform the input futures into a single future, using the provided transform function.
asyncTransform4(ListenableFuture<A>, ListenableFuture<B>, ListenableFuture<C>, ListenableFuture<D>, FuturesExtra.AsyncFunction4<Z, ? super A, ? super B, ? super C, ? super D>) - Static method in class com.spotify.futures.FuturesExtra
Transform the input futures into a single future, using the provided transform function.
asyncTransform5(ListenableFuture<A>, ListenableFuture<B>, ListenableFuture<C>, ListenableFuture<D>, ListenableFuture<E>, FuturesExtra.AsyncFunction5<Z, ? super A, ? super B, ? super C, ? super D, ? super E>) - Static method in class com.spotify.futures.FuturesExtra
Transform the input futures into a single future, using the provided transform function.
asyncTransform6(ListenableFuture<A>, ListenableFuture<B>, ListenableFuture<C>, ListenableFuture<D>, ListenableFuture<E>, ListenableFuture<F>, FuturesExtra.AsyncFunction6<Z, ? super A, ? super B, ? super C, ? super D, ? super E, ? super F>) - Static method in class com.spotify.futures.FuturesExtra
Transform the input futures into a single future, using the provided transform function.

C

checkCompleted(CompletionStage<T>) - Static method in class com.spotify.futures.CompletableFuturesExtra
check that a stage is completed.
checkCompleted(ListenableFuture<T>) - Static method in class com.spotify.futures.FuturesExtra
check that a future is completed.
com.spotify.futures - package com.spotify.futures
 
CompletableFuturesExtra - Class in com.spotify.futures
 
CompletableFuturesExtra() - Constructor for class com.spotify.futures.CompletableFuturesExtra
 
CompletableFuturesExtra.Identity - Enum in com.spotify.futures
 
CompletableFuturesExtra.WrapFunction - Enum in com.spotify.futures
 
CompletableToListenableFutureWrapper<V> - Class in com.spotify.futures
 
CompletableToListenableFutureWrapper(CompletionStage<V>) - Constructor for class com.spotify.futures.CompletableToListenableFutureWrapper
 
create(ScheduledExecutorService) - Static method in class com.spotify.futures.AsyncRetrier
 

D

DEFAULT_DELAY_MILLIS - Static variable in class com.spotify.futures.AsyncRetrier
 
dereference(CompletionStage<? extends CompletionStage<T>>) - Static method in class com.spotify.futures.CompletableFuturesExtra
This takes a stage of a stage of a value and returns a plain stage of a value.

E

exceptionallyCompletedFuture(Throwable) - Static method in class com.spotify.futures.CompletableFuturesExtra
Returns a new CompletableFuture that is already exceptionally completed with the given exception.
exceptionallyCompose(CompletionStage<T>, Function<Throwable, ? extends CompletionStage<T>>) - Static method in class com.spotify.futures.CompletableFuturesExtra
Returns a new stage that, when this stage completes exceptionally, is executed with this stage's exception as the argument to the supplied function.
executorService - Variable in class com.spotify.futures.AsyncRetrier
 

F

fastFail(ListenableFuture<B>, ListenableFuture<A>, Validator<B>) - Static method in class com.spotify.futures.FuturesExtra
This takes two futures of type A and B and works like a valve on A, with validation executed on B.
future - Variable in class com.spotify.futures.CompletableToListenableFutureWrapper
 
future - Variable in class com.spotify.futures.ListenableToCompletableFutureWrapper
 
futures - Variable in class com.spotify.futures.JoinedResults
 
futures - Variable in class com.spotify.futures.JoinedResults.Transform
 
FuturesExtra - Class in com.spotify.futures
Static utility methods pertaining to the ListenableFuture interface.
FuturesExtra() - Constructor for class com.spotify.futures.FuturesExtra
 
FuturesExtra.AsyncFunction2<Z,A,B> - Interface in com.spotify.futures
FuturesExtra.AsyncFunction3<Z,A,B,C> - Interface in com.spotify.futures
 
FuturesExtra.AsyncFunction4<Z,A,B,C,D> - Interface in com.spotify.futures
 
FuturesExtra.AsyncFunction5<Z,A,B,C,D,E> - Interface in com.spotify.futures
 
FuturesExtra.AsyncFunction6<Z,A,B,C,D,E,F> - Interface in com.spotify.futures
 
FuturesExtra.Consumer<T> - Interface in com.spotify.futures
Represents an operation that accepts a single input argument and returns no result.
FuturesExtra.Function2<Z,A,B> - Interface in com.spotify.futures
Implementations of this interface is used to synchronously transform the input values into an output value.
FuturesExtra.Function3<Z,A,B,C> - Interface in com.spotify.futures
Implementations of this interface is used to synchronously transform the input values into an output value.
FuturesExtra.Function4<Z,A,B,C,D> - Interface in com.spotify.futures
Implementations of this interface is used to synchronously transform the input values into an output value.
FuturesExtra.Function5<Z,A,B,C,D,E> - Interface in com.spotify.futures
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> - Interface in com.spotify.futures
Implementations of this interface is used to synchronously transform the input values into an output value.

G

get(ListenableFuture<T>) - Method in class com.spotify.futures.JoinedResults
Gets a future value if it was part of the joined future values, else throws an illegal argument exception
getCompleted(CompletionStage<T>) - Static method in class com.spotify.futures.CompletableFuturesExtra
Get the value of a completed stage.
getCompleted(ListenableFuture<T>) - Static method in class com.spotify.futures.FuturesExtra
Get the value of a completed future.
getException(ListenableFuture<T>) - Static method in class com.spotify.futures.FuturesExtra
Get the exception of a completed future.

H

handleCompose(CompletionStage<T>, BiFunction<? super T, Throwable, ? extends CompletionStage<U>>) - Static method in class com.spotify.futures.CompletableFuturesExtra
Returns a new stage that, when this stage completes either normally or exceptionally, is executed with this stage's result and exception as arguments to the supplied function.
handleFailure(SettableFuture<T>, Supplier<ListenableFuture<T>>, int, long, TimeUnit, Predicate<T>, Throwable) - Method in class com.spotify.futures.AsyncRetrier
 

I

Identity() - Constructor for enum com.spotify.futures.CompletableFuturesExtra.Identity
 

J

join(List<? extends ListenableFuture<?>>) - Static method in class com.spotify.futures.FuturesExtra
Transform a list of futures to a future that returns a joined result of them all.
join(ListenableFuture<?>...) - Static method in class com.spotify.futures.FuturesExtra
Transform a list of futures to a future that returns a joined result of them all.
JoinedResults - Class in com.spotify.futures
Contains references to a set of joined future values
JoinedResults(Map<ListenableFuture<?>, Object>) - Constructor for class com.spotify.futures.JoinedResults
 
JoinedResults.Null - Enum in com.spotify.futures
 
JoinedResults.Transform - Class in com.spotify.futures
 

L

ListenableToCompletableFutureWrapper<V> - Class in com.spotify.futures
 
ListenableToCompletableFutureWrapper(ListenableFuture<V>) - Constructor for class com.spotify.futures.ListenableToCompletableFutureWrapper
 

M

makeTimeoutFuture(ScheduledExecutorService, ListenableFuture<T>, long, TimeUnit) - Static method in class com.spotify.futures.FuturesExtra
Returns a future that fails with a TimeoutException if the parent future has not finished before the timeout.

N

Null() - Constructor for enum com.spotify.futures.JoinedResults.Null
 

O

onFailure(Throwable) - Method in class com.spotify.futures.ListenableToCompletableFutureWrapper
 
onSuccess(V) - Method in class com.spotify.futures.ListenableToCompletableFutureWrapper
 

R

retry(Supplier<ListenableFuture<T>>, int) - Method in class com.spotify.futures.AsyncRetrier
 
retry(Supplier<ListenableFuture<T>>, int, long) - Method in class com.spotify.futures.AsyncRetrier
 
retry(Supplier<ListenableFuture<T>>, int, long, TimeUnit) - Method in class com.spotify.futures.AsyncRetrier
 
retry(Supplier<ListenableFuture<T>>, int, long, TimeUnit, Predicate<T>) - Method in class com.spotify.futures.AsyncRetrier
 

S

select(List<? extends ListenableFuture<T>>) - Static method in class com.spotify.futures.FuturesExtra
Returns a new ListenableFuture with the result of the first of futures that successfully completes.
startRetry(SettableFuture<T>, Supplier<ListenableFuture<T>>, int, long, TimeUnit, Predicate<T>) - Method in class com.spotify.futures.AsyncRetrier
 
syncTransform(ListenableFuture<I>, Function<? super I, ? extends O>) - Static method in class com.spotify.futures.FuturesExtra
 
syncTransform2(ListenableFuture<A>, ListenableFuture<B>, FuturesExtra.Function2<Z, ? super A, ? super B>) - Static method in class com.spotify.futures.FuturesExtra
Transform the input futures into a single future, using the provided transform function.
syncTransform3(ListenableFuture<A>, ListenableFuture<B>, ListenableFuture<C>, FuturesExtra.Function3<Z, ? super A, ? super B, ? super C>) - Static method in class com.spotify.futures.FuturesExtra
Transform the input futures into a single future, using the provided transform function.
syncTransform4(ListenableFuture<A>, ListenableFuture<B>, ListenableFuture<C>, ListenableFuture<D>, FuturesExtra.Function4<Z, ? super A, ? super B, ? super C, ? super D>) - Static method in class com.spotify.futures.FuturesExtra
Transform the input futures into a single future, using the provided transform function.
syncTransform5(ListenableFuture<A>, ListenableFuture<B>, ListenableFuture<C>, ListenableFuture<D>, ListenableFuture<E>, FuturesExtra.Function5<Z, ? super A, ? super B, ? super C, ? super D, ? super E>) - Static method in class com.spotify.futures.FuturesExtra
Transform the input futures into a single future, using the provided transform function.
syncTransform6(ListenableFuture<A>, ListenableFuture<B>, ListenableFuture<C>, ListenableFuture<D>, ListenableFuture<E>, ListenableFuture<F>, FuturesExtra.Function6<Z, ? super A, ? super B, ? super C, ? super D, ? super E, ? super F>) - Static method in class com.spotify.futures.FuturesExtra
Transform the input futures into a single future, using the provided transform function.

T

toCompletableFuture(ListenableFuture<V>) - Static method in class com.spotify.futures.CompletableFuturesExtra
Wrap a ListenableFuture in a CompletableFuture.
toListenableFuture(CompletableFuture<V>) - Static method in class com.spotify.futures.CompletableFuturesExtra
Wrap a CompletableFuture in a ListenableFuture.
toListenableFuture(CompletionStage<V>) - Static method in class com.spotify.futures.CompletableFuturesExtra
Wrap a CompletionStage in a ListenableFuture.
transform(List<? extends ListenableFuture<?>>, Function<List<Object>, Z>) - Static method in class com.spotify.futures.FuturesExtra
 
transform(List<? extends ListenableFuture<?>>, AsyncFunction<List<Object>, Z>) - Static method in class com.spotify.futures.FuturesExtra
 
Transform(List<? extends ListenableFuture<?>>) - Constructor for class com.spotify.futures.JoinedResults.Transform
 

U

unwrap() - Method in class com.spotify.futures.CompletableToListenableFutureWrapper
 
unwrap() - Method in class com.spotify.futures.ListenableToCompletableFutureWrapper
 

V

validate(T) - Method in interface com.spotify.futures.Validator
 
Validator<T> - Interface in com.spotify.futures
Validate a value, throw an exception on invalid values.
valueOf(String) - Static method in enum com.spotify.futures.CompletableFuturesExtra.Identity
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.spotify.futures.CompletableFuturesExtra.WrapFunction
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.spotify.futures.JoinedResults.Null
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.spotify.futures.CompletableFuturesExtra.Identity
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.spotify.futures.CompletableFuturesExtra.WrapFunction
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.spotify.futures.JoinedResults.Null
Returns an array containing the constants of this enum type, in the order they are declared.

W

wrap(CompletionStage<T>) - Static method in class com.spotify.futures.CompletableFuturesExtra
 
WrapFunction() - Constructor for enum com.spotify.futures.CompletableFuturesExtra.WrapFunction
 
A C D E F G H I J L M N O R S T U V W 
Skip navigation links

Copyright © 2015 Spotify AB. All Rights Reserved.