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 Throwablecause()voidclearError()intcompareTo(BatchCommandData<T,R> o)booleanisSuccess()booleantryFailure(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:
tryFailurein interfaceQueueCommand- Overrides:
tryFailurein classCommandData<T,R>
-
isSuccess
public boolean isSuccess()
- Overrides:
isSuccessin classCommandData<T,R>
-
cause
public Throwable cause()
- Overrides:
causein classCommandData<T,R>
-
clearError
public void clearError()
-
compareTo
public int compareTo(BatchCommandData<T,R> o)
- Specified by:
compareToin interfaceComparable<T>
-
-