entry = new ConnectionEntry(); ConnectionEntry oldEntry = connections.putIfAbsent(source.getEntry(), entry); if (oldEntry != null) { if (entry.getConnectionFuture() != null) { return entry.getConnectionFuture(); if (entry.getConnectionFuture() != null) { return entry.getConnectionFuture(); entry.setConnectionFuture(connectionFuture); return connectionFuture;
RPromise<Void> promise = new RedissonPromise<Void>(); list.add(new CommandData<Void, Void>(promise, details.getCodec(), RedisCommands.ASKING, new Object[]{})); if (connectionEntry.isFirstCommand()) { list.add(new CommandData<Void, Void>(promise, details.getCodec(), RedisCommands.MULTI, new Object[]{})); connectionEntry.setFirstCommand(false); if (connectionEntry.isFirstCommand()) { List<CommandData<?, ?>> list = new ArrayList<CommandData<?, ?>>(2); list.add(new CommandData<Void, Void>(new RedissonPromise<Void>(), details.getCodec(), RedisCommands.MULTI, new Object[]{})); RPromise<Void> main = new RedissonPromise<Void>(); ChannelFuture future = connection.send(new CommandsData(main, list, true)); connectionEntry.setFirstCommand(false); details.setWriteFuture(future); } else {
RPromise<Void> promise = new RedissonPromise<Void>(); list.add(new CommandData<Void, Void>(promise, details.getCodec(), RedisCommands.ASKING, new Object[]{})); if (connectionEntry.isFirstCommand()) { list.add(new CommandData<Void, Void>(promise, details.getCodec(), RedisCommands.MULTI, new Object[]{})); connectionEntry.setFirstCommand(false); if (connectionEntry.isFirstCommand()) { List<CommandData<?, ?>> list = new ArrayList<CommandData<?, ?>>(2); list.add(new CommandData<Void, Void>(new RedissonPromise<Void>(), details.getCodec(), RedisCommands.MULTI, new Object[]{})); RPromise<Void> main = new RedissonPromise<Void>(); ChannelFuture future = connection.send(new CommandsData(main, list, true)); connectionEntry.setFirstCommand(false); details.setWriteFuture(future); } else {
entry = new ConnectionEntry(); ConnectionEntry oldEntry = connections.putIfAbsent(source.getEntry(), entry); if (oldEntry != null) { if (entry.getConnectionFuture() != null) { return entry.getConnectionFuture(); if (entry.getConnectionFuture() != null) { return entry.getConnectionFuture(); entry.setConnectionFuture(connectionFuture); return connectionFuture;
RPromise<Void> promise = new RedissonPromise<Void>(); list.add(new CommandData<Void, Void>(promise, details.getCodec(), RedisCommands.ASKING, new Object[]{})); if (connectionEntry.isFirstCommand()) { list.add(new CommandData<Void, Void>(promise, details.getCodec(), RedisCommands.MULTI, new Object[]{})); connectionEntry.setFirstCommand(false); if (connectionEntry.isFirstCommand()) { List<CommandData<?, ?>> list = new ArrayList<CommandData<?, ?>>(2); list.add(new CommandData<Void, Void>(new RedissonPromise<Void>(), details.getCodec(), RedisCommands.MULTI, new Object[]{})); RPromise<Void> main = new RedissonPromise<Void>(); ChannelFuture future = connection.send(new CommandsData(main, list, true)); connectionEntry.setFirstCommand(false); details.setWriteFuture(future); } else {
entry = new ConnectionEntry(); ConnectionEntry oldEntry = connections.putIfAbsent(source.getEntry(), entry); if (oldEntry != null) { if (entry.getConnectionFuture() != null) { return entry.getConnectionFuture(); if (entry.getConnectionFuture() != null) { return entry.getConnectionFuture(); entry.setConnectionFuture(connectionFuture); return connectionFuture;