public interface Callback
This is a bridge to async libraries such as CompletableFuture complete, completeExceptionally.
Implementations will call either onComplete() or onError(java.lang.Throwable), but not both.
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete()
Invoked when computation completed successfully.
|
void |
onError(Throwable t)
Invoked when computation completed abnormally.
|
void onComplete()
When this is called, onError(java.lang.Throwable) won't be.
void onError(Throwable t)
When this is called, onComplete() won't be.
Copyright © 2016–2017 OpenZipkin. All rights reserved.