K - Key type.V - Value type.T - Output type.public interface RedisCommand<K,V,T>
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel a command.
|
void |
complete()
Complete a command.
|
boolean |
completeExceptionally(Throwable throwable) |
void |
encode(ByteBuf buf)
Encode the command.
|
CommandArgs<K,V> |
getArgs() |
CommandOutput<K,V,T> |
getOutput()
The command output.
|
ProtocolKeyword |
getType() |
boolean |
isCancelled() |
boolean |
isDone() |
void |
setOutput(CommandOutput<K,V,T> output)
Set a new output.
|
CommandOutput<K,V,T> getOutput()
void complete()
void cancel()
CommandArgs<K,V> getArgs()
boolean completeExceptionally(Throwable throwable)
throwable - the exceptiontrue if this invocation caused this CompletableFuture to transition to a completed state, else
falseProtocolKeyword getType()
void encode(ByteBuf buf)
buf - byte buffer to operate on.boolean isCancelled()
boolean isDone()
void setOutput(CommandOutput<K,V,T> output)
output - the new command outputIllegalStateException - if the command is cancelled/completedCopyright © 2019 lettuce.io. All rights reserved.