@Override public RBatch retryInterval(long retryInterval, TimeUnit unit) { options.retryInterval(retryInterval, unit); return this; }
@Override public RBatchReactive retryInterval(long retryInterval, TimeUnit unit) { options.retryInterval(retryInterval, unit); return this; }
@Override public RBatch retryInterval(long retryInterval, TimeUnit unit) { options.retryInterval(retryInterval, unit); return this; }
@Override public RBatchReactive retryInterval(long retryInterval, TimeUnit unit) { options.retryInterval(retryInterval, unit); return this; }
@Override public RBatchRx retryInterval(long retryInterval, TimeUnit unit) { options.retryInterval(retryInterval, unit); return this; }
@Override public RBatchRx retryInterval(long retryInterval, TimeUnit unit) { options.retryInterval(retryInterval, unit); return this; }
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; }
@Override public RBatch retryInterval(long retryInterval, TimeUnit unit) { options.retryInterval(retryInterval, unit); return this; }
@Override public RBatchRx retryInterval(long retryInterval, TimeUnit unit) { options.retryInterval(retryInterval, unit); return this; }
@Override public RBatchReactive retryInterval(long retryInterval, TimeUnit unit) { options.retryInterval(retryInterval, unit); return this; }
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; }