public class CommandBatchService extends CommandAsyncService
Modifier and Type | Class and Description |
---|---|
static class |
CommandBatchService.ConnectionEntry |
static class |
CommandBatchService.Entry |
Constructor and Description |
---|
CommandBatchService(CommandAsyncExecutor executor) |
CommandBatchService(CommandAsyncExecutor executor,
BatchOptions options) |
CommandBatchService(CommandAsyncExecutor executor,
BatchOptions options,
RedissonObjectBuilder.ReferenceType referenceType) |
CommandBatchService(CommandAsyncExecutor executor,
RedissonObjectBuilder.ReferenceType referenceType) |
Modifier and Type | Method and Description |
---|---|
void |
add(RFuture<?> future,
List<CommandBatchService> services) |
<V,R> void |
async(boolean readOnlyMode,
NodeSource nodeSource,
Codec codec,
RedisCommand<V> command,
Object[] params,
RPromise<R> mainPromise,
boolean ignoreRedirect) |
<R> RPromise<R> |
createPromise() |
void |
discard() |
RFuture<Void> |
discardAsync() |
BatchResult<?> |
execute() |
RFuture<BatchResult<?>> |
executeAsync() |
RFuture<Void> |
executeAsyncVoid() |
BatchOptions |
getOptions() |
protected void |
handle(RPromise<Void> mainPromise,
AtomicInteger slots,
RFuture<?> future) |
protected boolean |
isEvalCacheActive() |
boolean |
isExecuted() |
protected boolean |
isRedisBasedQueue() |
protected boolean |
isWaitCommand(CommandData<?,?> c) |
convertException, encode, encodeMapKey, encodeMapValue, evalAllAsync, evalReadAsync, evalReadAsync, evalReadAsync, evalWriteAllAsync, evalWriteAsync, evalWriteAsync, get, getConnectionManager, getInterrupted, getObjectBuilder, pollFromAnyAsync, readAllAsync, readAllAsync, readAllAsync, readAllAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readBatchedAsync, readRandomAsync, readRandomAsync, syncSubscription, syncSubscriptionInterrupted, writeAllAsync, writeAllAsync, writeAllAsync, writeAsync, writeAsync, writeAsync, writeAsync, writeAsync, writeBatchedAsync
public CommandBatchService(CommandAsyncExecutor executor)
public CommandBatchService(CommandAsyncExecutor executor, RedissonObjectBuilder.ReferenceType referenceType)
public CommandBatchService(CommandAsyncExecutor executor, BatchOptions options)
public CommandBatchService(CommandAsyncExecutor executor, BatchOptions options, RedissonObjectBuilder.ReferenceType referenceType)
public BatchOptions getOptions()
public void add(RFuture<?> future, List<CommandBatchService> services)
public <V,R> void async(boolean readOnlyMode, NodeSource nodeSource, Codec codec, RedisCommand<V> command, Object[] params, RPromise<R> mainPromise, boolean ignoreRedirect)
async
in class CommandAsyncService
public <R> RPromise<R> createPromise()
createPromise
in class CommandAsyncService
public void discard()
public BatchResult<?> execute()
public boolean isExecuted()
public RFuture<BatchResult<?>> executeAsync()
protected boolean isRedisBasedQueue()
protected boolean isWaitCommand(CommandData<?,?> c)
protected void handle(RPromise<Void> mainPromise, AtomicInteger slots, RFuture<?> future)
protected boolean isEvalCacheActive()
isEvalCacheActive
in class CommandAsyncService
Copyright © 2014–2021 Redisson. All rights reserved.