Package org.redisson.client.protocol
Class CommandData<T,R>
java.lang.Object
org.redisson.client.protocol.CommandData<T,R>
- Type Parameters:
T
- input typeR
- output type
- All Implemented Interfaces:
QueueCommand
- Direct Known Subclasses:
BatchCommandData
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorDescriptionCommandData
(CompletableFuture<R> promise, Codec codec, RedisCommand<T> command, Object[] params) CommandData
(CompletableFuture<R> promise, MultiDecoder<Object> messageDecoder, Codec codec, RedisCommand<T> command, Object[] params) -
Method Summary
-
Constructor Details
-
CommandData
public CommandData(CompletableFuture<R> promise, Codec codec, RedisCommand<T> command, Object[] params) -
CommandData
public CommandData(CompletableFuture<R> promise, MultiDecoder<Object> messageDecoder, Codec codec, RedisCommand<T> command, Object[] params)
-
-
Method Details
-
getCommand
-
getParams
-
getMessageDecoder
-
getPromise
-
cause
-
isSuccess
public boolean isSuccess() -
tryFailure
- Specified by:
tryFailure
in interfaceQueueCommand
-
getCodec
-
toString
-
getPubSubOperations
- Specified by:
getPubSubOperations
in interfaceQueueCommand
-
isBlockingCommand
public boolean isBlockingCommand()- Specified by:
isBlockingCommand
in interfaceQueueCommand
-
isExecuted
public boolean isExecuted()- Specified by:
isExecuted
in interfaceQueueCommand
-