Uses of Class
org.drasyl.util.FutureComposer
-
Uses of FutureComposer in org.drasyl.util
Modifier and TypeMethodDescriptionstatic <R> FutureComposer<R>
FutureComposer.composeFailedFuture
(Throwable cause) static <R> FutureComposer<R>
FutureComposer.composeFuture
(io.netty.util.concurrent.Future<R> future) static FutureComposer<Void>
FutureComposer.composeSucceededFuture()
static <R> FutureComposer<R>
FutureComposer.composeSucceededFuture
(R result) <R> FutureComposer<R>
FutureComposer.then
(io.netty.util.concurrent.Future<R> future) Returns a newFutureComposer
that will complete if all previousFuture
s andfuture
have been completed.<R> FutureComposer<R>
FutureComposer.then
(Function<io.netty.util.concurrent.Future<T>, FutureComposer<R>> mapper) Returns a newFutureComposer
that will complete if all previousFuture
s and theFutureComposer
returned bymapper
have been completed.<R> FutureComposer<R>
FutureComposer.then
(Supplier<FutureComposer<R>> mapper) Modifier and TypeMethodDescription<R> FutureComposer<R>
FutureComposer.then
(Function<io.netty.util.concurrent.Future<T>, FutureComposer<R>> mapper) Returns a newFutureComposer
that will complete if all previousFuture
s and theFutureComposer
returned bymapper
have been completed.<R> FutureComposer<R>
FutureComposer.then
(Supplier<FutureComposer<R>> mapper)