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
ConstructorDescriptionBatchCommandData
(CompletableFuture<R> promise, Codec codec, RedisCommand<T> command, Object[] params, int index) BatchCommandData
(RedisCommand<T> command, Object[] params, int index) -
Method Summary
Modifier and TypeMethodDescriptioncause()
void
int
compareTo
(BatchCommandData<T, R> o) int
getIndex()
boolean
boolean
tryFailure
(Throwable cause) void
updateCommand
(RedisCommand command) Methods inherited from class org.redisson.client.protocol.CommandData
getCodec, getCommand, getMessageDecoder, getParams, getPromise, getPubSubOperations, isBlockingCommand, isExecuted, toString
-
Constructor Details
-
BatchCommandData
-
BatchCommandData
public BatchCommandData(CompletableFuture<R> promise, Codec codec, RedisCommand<T> command, Object[] params, int index)
-
-
Method Details
-
tryFailure
- Specified by:
tryFailure
in interfaceQueueCommand
- Overrides:
tryFailure
in classCommandData<T,
R>
-
isSuccess
public boolean isSuccess()- Overrides:
isSuccess
in classCommandData<T,
R>
-
cause
- Overrides:
cause
in classCommandData<T,
R>
-
clearError
public void clearError() -
compareTo
- Specified by:
compareTo
in interfaceComparable<T>
-
updateCommand
-
getIndex
public int getIndex()
-