| 构造器和说明 |
|---|
RCommonBatch(org.redisson.command.CommandAsyncExecutor executor,
org.redisson.api.BatchOptions options) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
discard()
Discard batched commands and release allocated buffers used for parameters encoding.
|
org.redisson.api.RFuture<Void> |
discardAsync()
Discard batched commands and release allocated buffers used for parameters encoding.
|
org.redisson.api.BatchResult<?> |
execute()
Executes all operations accumulated during async methods invocations.
|
org.redisson.api.RFuture<org.redisson.api.BatchResult<?>> |
executeAsync()
Executes all operations accumulated during async methods invocations asynchronously.
|
org.redisson.command.CommandBatchService |
getExecutorService() |
public RCommonBatch(org.redisson.command.CommandAsyncExecutor executor,
org.redisson.api.BatchOptions options)
public org.redisson.command.CommandBatchService getExecutorService()
public org.redisson.api.BatchResult<?> execute()
RBatchIf cluster configuration used then operations are grouped by slot ids and may be executed on different servers. Thus command execution order could be changed
public org.redisson.api.RFuture<org.redisson.api.BatchResult<?>> executeAsync()
RBatchIn cluster configurations operations grouped by slot ids so may be executed on different servers. Thus command execution order could be changed
executeAsync 在接口中 RBatchpublic void discard()
RBatchpublic org.redisson.api.RFuture<Void> discardAsync()
RBatchdiscardAsync 在接口中 RBatchCopyright © 2024. All rights reserved.