Package org.redisson.client.protocol
Class BatchCommandData<T,R>
- java.lang.Object
-
- org.redisson.client.protocol.CommandData<T,R>
-
- org.redisson.client.protocol.BatchCommandData<T,R>
-
- Type Parameters:
T
- input typeR
- output type
- All Implemented Interfaces:
Comparable<BatchCommandData<T,R>>
,QueueCommand
public class BatchCommandData<T,R> extends CommandData<T,R> implements Comparable<BatchCommandData<T,R>>
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description BatchCommandData(RedisCommand<T> command, Object[] params, int index)
BatchCommandData(RPromise<R> promise, Codec codec, RedisCommand<T> command, Object[] params, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
cause()
void
clearError()
int
compareTo(BatchCommandData<T,R> o)
boolean
isSuccess()
boolean
tryFailure(Throwable cause)
-
Methods inherited from class org.redisson.client.protocol.CommandData
getCodec, getCommand, getMessageDecoder, getParams, getPromise, getPubSubOperations, isBlockingCommand, isExecuted, toString
-
-
-
-
Constructor Detail
-
BatchCommandData
public BatchCommandData(RedisCommand<T> command, Object[] params, int index)
-
-
Method Detail
-
tryFailure
public boolean tryFailure(Throwable cause)
- Specified by:
tryFailure
in interfaceQueueCommand
- Overrides:
tryFailure
in classCommandData<T,R>
-
isSuccess
public boolean isSuccess()
- Overrides:
isSuccess
in classCommandData<T,R>
-
cause
public Throwable cause()
- Overrides:
cause
in classCommandData<T,R>
-
clearError
public void clearError()
-
compareTo
public int compareTo(BatchCommandData<T,R> o)
- Specified by:
compareTo
in interfaceComparable<T>
-
-