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
ConstructorsConstructorDescriptionBatchCommandData(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()voidintcompareTo(BatchCommandData<T, R> o) booleanbooleantryFailure(Throwable cause) 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:
tryFailurein interfaceQueueCommand- Overrides:
tryFailurein classCommandData<T,R>
-
isSuccess
public boolean isSuccess()- Overrides:
isSuccessin classCommandData<T,R>
-
cause
- Overrides:
causein classCommandData<T,R>
-
clearError
public void clearError() -
compareTo
- Specified by:
compareToin interfaceComparable<T>
-