private void reattachBlockingQueue(RedisConnection connection, CommandData<?, ?> currentCommand) { if (currentCommand == null || !currentCommand.isBlockingCommand() || currentCommand.getPromise().isDone()) { return; } log.debug("blocking queue sent " + connection); ChannelFuture future = connection.send(currentCommand); final CommandData<?, ?> cd = currentCommand; future.addListener(new ChannelFutureListener() { @Override public void operationComplete(ChannelFuture future) throws Exception { if (!future.isSuccess()) { log.error("Can't reconnect blocking queue to new connection. {}", cd); } } }); }
private void reattachBlockingQueue(RedisConnection connection, CommandData<?, ?> currentCommand) { if (currentCommand == null || !currentCommand.isBlockingCommand() || currentCommand.getPromise().isDone()) { return; } log.debug("blocking queue sent " + connection); ChannelFuture future = connection.send(currentCommand); final CommandData<?, ?> cd = currentCommand; future.addListener(new ChannelFutureListener() { @Override public void operationComplete(ChannelFuture future) throws Exception { if (!future.isSuccess()) { log.error("Can't reconnect blocking queue to new connection. {}", cd); } } }); }
commandData.getPromise().addListener(listener); if (commandData.getPromise().isDone()) { return;
commandData.getPromise().addListener(listener); if (commandData.getPromise().isDone()) { return;
protected void completeResponse(CommandData<Object, Object> data, Object result, Channel channel) { if (data != null && !data.getPromise().trySuccess(result) && data.cause() instanceof RedisTimeoutException) { log.warn("response has been skipped due to timeout! channel: {}, command: {}, result: {}", channel, LogHelper.toString(data), LogHelper.toString(result)); } }
protected void completeResponse(CommandData<Object, Object> data, Object result, Channel channel) { if (data != null && !data.getPromise().trySuccess(result) && data.cause() instanceof RedisTimeoutException) { log.warn("response has been skipped due to timeout! channel: {}, command: {}, result: {}", channel, LogHelper.toString(data), LogHelper.toString(result)); } }
if (commandData.getPromise().isDone() && !commandData.getPromise().isSuccess()) { data.tryFailure(commandData.cause());
if (commandData.getPromise().isDone() && !commandData.getPromise().isSuccess()) { data.tryFailure(commandData.cause());
&& commandData.getPromise().isSuccess()) { List<Object> objects = (List<Object>) commandData.getPromise().getNow(); Iterator<Object> iter = objects.iterator(); boolean multiFound = false;
&& commandData.getPromise().isSuccess()) { List<Object> objects = (List<Object>) commandData.getPromise().getNow(); Iterator<Object> iter = objects.iterator(); boolean multiFound = false;
|| commandData.getPromise().isDone()) { return;
|| commandData.getPromise().isDone()) { return;
private void reattachBlockingQueue(RedisConnection connection, CommandData<?, ?> currentCommand) { if (currentCommand == null || !currentCommand.isBlockingCommand() || currentCommand.getPromise().isDone()) { return; } log.debug("blocking queue sent " + connection); ChannelFuture future = connection.send(currentCommand); final CommandData<?, ?> cd = currentCommand; future.addListener(new ChannelFutureListener() { @Override public void operationComplete(ChannelFuture future) throws Exception { if (!future.isSuccess()) { log.error("Can't reconnect blocking queue to new connection. {}", cd); } } }); }
protected void completeResponse(CommandData<Object, Object> data, Object result, Channel channel) { if (decoderStatus.get() == Status.FILL_BUFFER) { return; } if (data != null && !data.getPromise().trySuccess(result) && data.cause() instanceof RedisTimeoutException) { log.warn("response has been skipped due to timeout! channel: {}, command: {}, result: {}", channel, LogHelper.toString(data), LogHelper.toString(result)); } }
commandData.getPromise().addListener(listener); if (commandData.getPromise().isDone()) { return;
if (commandData.getPromise().isDone() && !commandData.getPromise().isSuccess()) { data.tryFailure(commandData.cause());
&& commandData.getPromise().isSuccess()) { List<Object> objects = (List<Object>) commandData.getPromise().getNow(); Iterator<Object> iter = objects.iterator(); boolean multiFound = false;
|| commandData.getPromise().isDone()) { return;