T
- The type of result returned on completion of an operation.@FunctionalInterface public interface CompletionListener<T>
Modifier and Type | Method and Description |
---|---|
void |
onCompletion(T result,
Throwable t)
A callback listener that accepts the results of a future computation.
|
void onCompletion(T result, Throwable t)
Throwable
object
as an indicator for failed execution.result
- the future execution resultt
- a Throwable
if execution fails; otherwise nullCopyright 2019-2024 Solace Corporation. All rights reserved.