public interface Callback<T>
| Modifier and Type | Field and Description |
|---|---|
static Callback<Object> |
IGNORE_CALLBACK |
| Modifier and Type | Method and Description |
|---|---|
static <T> Callback<T> |
assertNoCalls() |
static <T> Callback<T> |
assertNoExceptions() |
static <T> Callback<T> |
forBiConsumer(BiConsumer<T,Throwable> biConsumer) |
static <T> Callback<T> |
forFuture(CompletableFuture<T> future) |
static <T> Callback<T> |
ignore() |
void |
set(T result) |
default void |
set(T result,
Throwable throwable) |
void |
setException(Throwable t) |
static <T> void |
stageToCallback(Stage<T> stage,
Callback<T> callback) |
void setException(Throwable t)
static <T> Callback<T> ignore()
static <T> Callback<T> forBiConsumer(BiConsumer<T,Throwable> biConsumer)
static <T> Callback<T> forFuture(CompletableFuture<T> future)
static <T> Callback<T> assertNoExceptions()
static <T> Callback<T> assertNoCalls()
Copyright © 2019. All rights reserved.