K
- Key type.V
- Value type.T
- Output type.public interface RedisCommand<K,V,T> extends com.google.common.util.concurrent.ListenableFuture<T>, RedisFuture<T>
Modifier and Type | Method and Description |
---|---|
void |
complete()
Complete a command.
|
void |
encode(ByteBuf buf)
Encode the command.
|
CommandArgs<K,V> |
getArgs() |
CommandOutput<K,V,T> |
getOutput()
The command output.
|
ProtocolKeyword |
getType() |
boolean |
setException(Throwable throwable)
Subclasses should invoke this method to set the result of the computation to an error,
throwable . |
await, getError
CommandOutput<K,V,T> getOutput()
void complete()
CommandArgs<K,V> getArgs()
ProtocolKeyword getType()
void encode(ByteBuf buf)
buf
- byte buffer to operate on.boolean setException(Throwable throwable)
throwable
. This will set
the state of the future to COMPLETED and invoke the listeners if the state was successfully changed.throwable
- the exception that the task failed with.Copyright © 2016. All rights reserved.