protected boolean isWaitCommand(BatchCommandData<?, ?> c) { return c.getCommand().getName().equals(RedisCommands.WAIT.getName()); }
protected boolean isWaitCommand(BatchCommandData<?, ?> c) { return c.getCommand().getName().equals(RedisCommands.WAIT.getName()); }
if (isWaitCommand(commandEntry)) { syncedSlaves = (Integer) commandEntry.getPromise().getNow(); } else if (!commandEntry.getCommand().getName().equals(RedisCommands.MULTI.getName()) && !commandEntry.getCommand().getName().equals(RedisCommands.EXEC.getName())) { Object entryResult = commandEntry.getPromise().getNow();
if (isWaitCommand(commandEntry)) { syncedSlaves = (Integer) commandEntry.getPromise().getNow(); } else if (!commandEntry.getCommand().getName().equals(RedisCommands.MULTI.getName()) && !commandEntry.getCommand().getName().equals(RedisCommands.EXEC.getName())) { Object entryResult = commandEntry.getPromise().getNow();
for (int i = respParts.size(); i < size; i++) { int suffix = 0; if (RedisCommands.MULTI.getName().equals(commands.get(0).getCommand().getName())) { suffix = 1;
@Override protected <V, R> void handleSuccess(final AsyncDetails<V, R> details, RPromise<R> promise, RedisCommand<?> command, R res) { if (RedisCommands.EXEC.getName().equals(command.getName())) { super.handleSuccess(details, promise, command, res); return; } if (RedisCommands.DISCARD.getName().equals(command.getName())) { super.handleSuccess(details, promise, command, null); if (executed.compareAndSet(false, true)) { details.getConnectionFuture().getNow().forceFastReconnectAsync().addListener(new FutureListener<Void>() { @Override public void operationComplete(Future<Void> future) throws Exception { CommandBatchService.super.releaseConnection(details.getSource(), details.getConnectionFuture(), details.isReadOnlyMode(), details.getAttemptPromise(), details); } }); } return; } if (isRedisBasedQueue()) { BatchPromise<R> batchPromise = (BatchPromise<R>) promise; RPromise<R> sentPromise = (RPromise<R>) batchPromise.getSentPromise(); super.handleSuccess(details, sentPromise, command, null); semaphore.release(); } }
@Override protected <V, R> void handleSuccess(final AsyncDetails<V, R> details, RPromise<R> promise, RedisCommand<?> command, R res) { if (RedisCommands.EXEC.getName().equals(command.getName())) { super.handleSuccess(details, promise, command, res); return; } if (RedisCommands.DISCARD.getName().equals(command.getName())) { super.handleSuccess(details, promise, command, null); if (executed.compareAndSet(false, true)) { details.getConnectionFuture().getNow().forceFastReconnectAsync().addListener(new FutureListener<Void>() { @Override public void operationComplete(Future<Void> future) throws Exception { CommandBatchService.super.releaseConnection(details.getSource(), details.getConnectionFuture(), details.isReadOnlyMode(), details.getAttemptPromise(), details); } }); } return; } if (isRedisBasedQueue()) { BatchPromise<R> batchPromise = (BatchPromise<R>) promise; RPromise<R> sentPromise = (RPromise<R>) batchPromise.getSentPromise(); super.handleSuccess(details, sentPromise, command, null); semaphore.release(); } }
for (int i = respParts.size(); i < size; i++) { int suffix = 0; if (RedisCommands.MULTI.getName().equals(commands.get(0).getCommand().getName())) { suffix = 1;
if (!commandBatch.isAtomic() || RedisCommands.EXEC.getName().equals(cmd.getName()) || RedisCommands.WAIT.getName().equals(cmd.getName())) { commandData = (CommandData<Object, Object>) commandBatch.getCommands().get(i); if (RedisCommands.EXEC.getName().equals(cmd.getName())) { if (RedisCommands.MULTI.getName().equals(command.getCommand().getName())) { multiFound = true;
if (!commandBatch.isAtomic() || RedisCommands.EXEC.getName().equals(cmd.getName()) || RedisCommands.WAIT.getName().equals(cmd.getName())) { commandData = (CommandData<Object, Object>) commandBatch.getCommands().get(i); if (RedisCommands.EXEC.getName().equals(cmd.getName())) { if (RedisCommands.MULTI.getName().equals(command.getCommand().getName())) { multiFound = true;
protected boolean isWaitCommand(BatchCommandData<?, ?> c) { return c.getCommand().getName().equals(RedisCommands.WAIT.getName()); }
if (isWaitCommand(commandEntry)) { syncedSlaves = (Integer) commandEntry.getPromise().getNow(); } else if (!commandEntry.getCommand().getName().equals(RedisCommands.MULTI.getName()) && !commandEntry.getCommand().getName().equals(RedisCommands.EXEC.getName())) { Object entryResult = commandEntry.getPromise().getNow();
for (int i = respParts.size(); i < size; i++) { int suffix = 0; if (RedisCommands.MULTI.getName().equals(commandsData.get(0).getCommand().getName())) { suffix = 1;
@Override protected <V, R> void handleSuccess(final AsyncDetails<V, R> details, RPromise<R> promise, RedisCommand<?> command, R res) { if (RedisCommands.EXEC.getName().equals(command.getName())) { super.handleSuccess(details, promise, command, res); return; } if (RedisCommands.DISCARD.getName().equals(command.getName())) { super.handleSuccess(details, promise, command, null); if (executed.compareAndSet(false, true)) { details.getConnectionFuture().getNow().forceFastReconnectAsync().addListener(new FutureListener<Void>() { @Override public void operationComplete(Future<Void> future) throws Exception { CommandBatchService.super.releaseConnection(details.getSource(), details.getConnectionFuture(), details.isReadOnlyMode(), details.getAttemptPromise(), details); } }); } return; } if (isRedisBasedQueue()) { BatchPromise<R> batchPromise = (BatchPromise<R>) promise; RPromise<R> sentPromise = (RPromise<R>) batchPromise.getSentPromise(); super.handleSuccess(details, sentPromise, command, null); semaphore.release(); } }
if (!commandBatch.isAtomic() || RedisCommands.EXEC.getName().equals(cmd.getName()) || RedisCommands.WAIT.getName().equals(cmd.getName())) { commandData = (CommandData<Object, Object>) commandBatch.getCommands().get(i); if (RedisCommands.EXEC.getName().equals(cmd.getName())) { if (RedisCommands.MULTI.getName().equals(command.getCommand().getName())) { multiFound = true;