| Modifier and Type | Method and Description |
|---|---|
static void |
adapt(ChannelFuture future,
CompletableFuture<Void> target)
|
static CompletableFuture<Void> |
allOf(Collection<? extends CompletableFuture<?>> futures)
Create a composite
CompletableFuture is composed from the given futures. |
static <T> CompletableFuture<T> |
failed(Throwable throwable)
Create a
CompletableFuture that is completed exceptionally with throwable. |
static CompletableFuture<Void> |
from(ChannelFuture future)
Adapt Netty's
ChannelFuture emitting a Void result. |
public static CompletableFuture<Void> allOf(Collection<? extends CompletableFuture<?>> futures)
CompletableFuture is composed from the given futures.futures - must not be null.CompletableFuture.public static <T> CompletableFuture<T> failed(Throwable throwable)
CompletableFuture that is completed exceptionally with throwable.throwable - must not be null.CompletableFuture.public static CompletableFuture<Void> from(ChannelFuture future)
ChannelFuture emitting a Void result.future - the ChannelFuture to adapt.CompletableFuture.public static void adapt(ChannelFuture future, CompletableFuture<Void> target)
future - Copyright © 2019 lettuce.io. All rights reserved.