public interface CompleteableCommand<T>
Modifier and Type | Method and Description |
---|---|
void |
onComplete(BiConsumer<? super T,Throwable> action)
Register a command callback for command completion that notifies the callback with the command result or the failure
resulting from command completion.
|
void |
onComplete(Consumer<? super T> action)
Register a command callback for successive command completion that notifies the callback with the command result.
|
void onComplete(Consumer<? super T> action)
action
- must not be null
.void onComplete(BiConsumer<? super T,Throwable> action)
action
- must not be null
.Copyright © 2022 lettuce.io. All rights reserved.