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
public class CommandData<T,R> extends Object implements QueueCommand
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description CommandData(RPromise<R> promise, Codec codec, RedisCommand<T> command, Object[] params)
CommandData(RPromise<R> promise, MultiDecoder<Object> messageDecoder, Codec codec, RedisCommand<T> command, Object[] params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
cause()
Codec
getCodec()
RedisCommand<T>
getCommand()
MultiDecoder<Object>
getMessageDecoder()
Object[]
getParams()
RPromise<R>
getPromise()
List<CommandData<Object,Object>>
getPubSubOperations()
boolean
isBlockingCommand()
boolean
isExecuted()
boolean
isSuccess()
String
toString()
boolean
tryFailure(Throwable cause)
-
-
-
Constructor Detail
-
CommandData
public CommandData(RPromise<R> promise, Codec codec, RedisCommand<T> command, Object[] params)
-
CommandData
public CommandData(RPromise<R> promise, MultiDecoder<Object> messageDecoder, Codec codec, RedisCommand<T> command, Object[] params)
-
-
Method Detail
-
getCommand
public RedisCommand<T> getCommand()
-
getParams
public Object[] getParams()
-
getMessageDecoder
public MultiDecoder<Object> getMessageDecoder()
-
cause
public Throwable cause()
-
isSuccess
public boolean isSuccess()
-
tryFailure
public boolean tryFailure(Throwable cause)
- Specified by:
tryFailure
in interfaceQueueCommand
-
getCodec
public Codec getCodec()
-
getPubSubOperations
public List<CommandData<Object,Object>> getPubSubOperations()
- Specified by:
getPubSubOperations
in interfaceQueueCommand
-
isBlockingCommand
public boolean isBlockingCommand()
- Specified by:
isBlockingCommand
in interfaceQueueCommand
-
isExecuted
public boolean isExecuted()
- Specified by:
isExecuted
in interfaceQueueCommand
-
-