public interface Callback<V>
This is a bridge to async libraries such as CompletableFuture complete, completeExceptionally.
Implementations will call either onSuccess(V) or onError(java.lang.Throwable), but not both.
| Modifier and Type | Method and Description |
|---|---|
void |
onError(Throwable t)
Invoked when computation produces a possibly null value successfully.
|
void |
onSuccess(V value)
Invoked when computation produces its potentially null value successfully.
|
void onSuccess(@Nullable
V value)
When this is called, onError(java.lang.Throwable) won't be.
void onError(Throwable t)
When this is called, onSuccess(V) won't be.
Copyright © 2015–2018 OpenZipkin. All rights reserved.