@Override public RBatch createBatch() { return createBatch(BatchOptions.defaults()); }
@Override public RBatch createBatch() { return createBatch(BatchOptions.defaults()); }
@Override public RFuture<BatchResult<?>> executeAsync() { return executorService.executeAsync(BatchOptions.defaults()); }
@Override public RBatchReactive createBatch() { return createBatch(BatchOptions.defaults()); }
public RFuture<List<?>> executeAsync() { return executeAsync(BatchOptions.defaults()); }
@Override public RFuture<BatchResult<?>> executeAsync() { return executorService.executeAsync(BatchOptions.defaults()); }
@Override public BatchResult<?> execute() { return executorService.execute(BatchOptions.defaults()); }
public RFuture<List<?>> executeAsync() { return executeAsync(BatchOptions.defaults()); }
@Override public BatchResult<?> execute() { return executorService.execute(BatchOptions.defaults()); }
@Override public RBatchReactive createBatch() { return createBatch(BatchOptions.defaults()); }
public BatchResult<?> execute() { RFuture<BatchResult<?>> f = executeAsync(BatchOptions.defaults()); return get(f); }
public BatchResult<?> execute() { RFuture<BatchResult<?>> f = executeAsync(BatchOptions.defaults()); return get(f); }
@Override public void openPipeline() { BatchOptions options = BatchOptions.defaults() .executionMode(ExecutionMode.IN_MEMORY); this.executorService = new CommandBatchService(redisson.getConnectionManager(), options); }
@Override public void openPipeline() { BatchOptions options = BatchOptions.defaults() .executionMode(ExecutionMode.IN_MEMORY); this.executorService = new CommandBatchService(redisson.getConnectionManager(), options); }
@Override public void openPipeline() { BatchOptions options = BatchOptions.defaults() .executionMode(ExecutionMode.IN_MEMORY); this.executorService = new CommandBatchService(redisson.getConnectionManager(), options); }
@Override public void openPipeline() { BatchOptions options = BatchOptions.defaults() .executionMode(ExecutionMode.IN_MEMORY); this.executorService = new CommandBatchService(redisson.getConnectionManager(), options); }
private RFuture<BatchResult<?>> enableLocalCacheAsync(String requestId, Map<HashKey, HashValue> hashes) { if (hashes.isEmpty()) { return RedissonPromise.newSucceededFuture(null); } RedissonBatch publishBatch = new RedissonBatch(null, commandExecutor.getConnectionManager(), BatchOptions.defaults()); for (Entry<HashKey, HashValue> entry : hashes.entrySet()) { String name = RedissonObject.suffixName(entry.getKey().getName(), RedissonLocalCachedMap.TOPIC_SUFFIX); RTopicAsync topic = publishBatch.getTopic(name, LocalCachedMessageCodec.INSTANCE); LocalCachedMapEnable msg = new LocalCachedMapEnable(requestId, entry.getValue().getKeyIds().toArray(new byte[entry.getValue().getKeyIds().size()][])); topic.publishAsync(msg); } return publishBatch.executeAsync(); }
private RFuture<BatchResult<?>> enableLocalCacheAsync(String requestId, Map<HashKey, HashValue> hashes) { if (hashes.isEmpty()) { return RedissonPromise.newSucceededFuture(null); } RedissonBatch publishBatch = new RedissonBatch(null, commandExecutor.getConnectionManager(), BatchOptions.defaults()); for (Entry<HashKey, HashValue> entry : hashes.entrySet()) { String name = RedissonObject.suffixName(entry.getKey().getName(), RedissonLocalCachedMap.TOPIC_SUFFIX); RTopicAsync topic = publishBatch.getTopic(name, LocalCachedMessageCodec.INSTANCE); LocalCachedMapEnable msg = new LocalCachedMapEnable(requestId, entry.getValue().getKeyIds().toArray(new byte[entry.getValue().getKeyIds().size()][])); topic.publishAsync(msg); } return publishBatch.executeAsync(); }
private BatchOptions createOptions() { int syncSlaves = 0; if (!commandExecutor.getConnectionManager().isClusterMode()) { MasterSlaveEntry entry = commandExecutor.getConnectionManager().getEntrySet().iterator().next(); syncSlaves = entry.getAvailableClients() - 1; } BatchOptions batchOptions = BatchOptions.defaults() .syncSlaves(syncSlaves, options.getSyncTimeout(), TimeUnit.MILLISECONDS) .responseTimeout(options.getResponseTimeout(), TimeUnit.MILLISECONDS) .retryAttempts(options.getRetryAttempts()) .retryInterval(options.getRetryInterval(), TimeUnit.MILLISECONDS) .atomic(); return batchOptions; }
private BatchOptions createOptions() { int syncSlaves = 0; if (!commandExecutor.getConnectionManager().isClusterMode()) { MasterSlaveEntry entry = commandExecutor.getConnectionManager().getEntrySet().iterator().next(); syncSlaves = entry.getAvailableClients() - 1; } BatchOptions batchOptions = BatchOptions.defaults() .syncSlaves(syncSlaves, options.getSyncTimeout(), TimeUnit.MILLISECONDS) .responseTimeout(options.getResponseTimeout(), TimeUnit.MILLISECONDS) .retryAttempts(options.getRetryAttempts()) .retryInterval(options.getRetryInterval(), TimeUnit.MILLISECONDS) .atomic(); return batchOptions; }