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 Throwablecause()CodecgetCodec()RedisCommand<T>getCommand()MultiDecoder<Object>getMessageDecoder()Object[]getParams()RPromise<R>getPromise()List<CommandData<Object,Object>>getPubSubOperations()booleanisBlockingCommand()booleanisExecuted()booleanisSuccess()StringtoString()booleantryFailure(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:
tryFailurein interfaceQueueCommand
-
getCodec
public Codec getCodec()
-
getPubSubOperations
public List<CommandData<Object,Object>> getPubSubOperations()
- Specified by:
getPubSubOperationsin interfaceQueueCommand
-
isBlockingCommand
public boolean isBlockingCommand()
- Specified by:
isBlockingCommandin interfaceQueueCommand
-
isExecuted
public boolean isExecuted()
- Specified by:
isExecutedin interfaceQueueCommand
-
-