protected void unlockInner(Collection<RLock> locks) { List<RFuture<Void>> futures = new ArrayList<RFuture<Void>>(locks.size()); for (RLock lock : locks) { futures.add(lock.unlockAsync()); } for (RFuture<Void> unlockFuture : futures) { unlockFuture.awaitUninterruptibly(); } }
protected void unlockInner(Collection<RLock> locks) { List<RFuture<Void>> futures = new ArrayList<RFuture<Void>>(locks.size()); for (RLock lock : locks) { futures.add(lock.unlockAsync()); } for (RFuture<Void> unlockFuture : futures) { unlockFuture.awaitUninterruptibly(); } }
for (Entry<RedisConnection, RFuture<String>> entry : result.entrySet()) { RFuture<String> f = entry.getValue(); f.awaitUninterruptibly(); if (!"PONG".equals(f.getNow())) { res = false;
for (Entry<RedisConnection, RFuture<String>> entry : result.entrySet()) { RFuture<String> f = entry.getValue(); f.awaitUninterruptibly(); if (!"PONG".equals(f.getNow())) { res = false;
masterFuture.awaitUninterruptibly(); if (!masterFuture.isSuccess()) { lastException = masterFuture.cause(); future.awaitUninterruptibly(); if (!future.isSuccess()) { lastException = future.cause();
masterFuture.awaitUninterruptibly(); if (!masterFuture.isSuccess()) { lastException = masterFuture.cause(); future.awaitUninterruptibly(); if (!future.isSuccess()) { lastException = future.cause();
private void retrieveAddresses() { ConnectionManager connectionManager = ((Redisson)redisson).getConnectionManager(); for (MasterSlaveEntry entry : connectionManager.getEntrySet()) { RFuture<RedisConnection> readFuture = entry.connectionReadOp(null); if (readFuture.awaitUninterruptibly((long)connectionManager.getConfig().getConnectTimeout()) && readFuture.isSuccess()) { RedisConnection connection = readFuture.getNow(); entry.releaseRead(connection); remoteAddress = (InetSocketAddress) connection.getChannel().remoteAddress(); localAddress = (InetSocketAddress) connection.getChannel().localAddress(); return; } RFuture<RedisConnection> writeFuture = entry.connectionWriteOp(null); if (writeFuture.awaitUninterruptibly((long)connectionManager.getConfig().getConnectTimeout()) && writeFuture.isSuccess()) { RedisConnection connection = writeFuture.getNow(); entry.releaseWrite(connection); remoteAddress = (InetSocketAddress) connection.getChannel().remoteAddress(); localAddress = (InetSocketAddress) connection.getChannel().localAddress(); return; } } }
private void retrieveAddresses() { ConnectionManager connectionManager = ((Redisson)redisson).getConnectionManager(); for (MasterSlaveEntry entry : connectionManager.getEntrySet()) { RFuture<RedisConnection> readFuture = entry.connectionReadOp(null); if (readFuture.awaitUninterruptibly((long)connectionManager.getConfig().getConnectTimeout()) && readFuture.isSuccess()) { RedisConnection connection = readFuture.getNow(); entry.releaseRead(connection); remoteAddress = (InetSocketAddress) connection.getChannel().remoteAddress(); localAddress = (InetSocketAddress) connection.getChannel().localAddress(); return; } RFuture<RedisConnection> writeFuture = entry.connectionWriteOp(null); if (writeFuture.awaitUninterruptibly((long)connectionManager.getConfig().getConnectTimeout()) && writeFuture.isSuccess()) { RedisConnection connection = writeFuture.getNow(); entry.releaseWrite(connection); remoteAddress = (InetSocketAddress) connection.getChannel().remoteAddress(); localAddress = (InetSocketAddress) connection.getChannel().localAddress(); return; } } }
connectionFuture.awaitUninterruptibly(); RedisConnection connection = connectionFuture.getNow(); if (connection == null) {
connectionFuture.awaitUninterruptibly(); RedisConnection connection = connectionFuture.getNow(); if (connection == null) {
future.awaitUninterruptibly(this.config.getConnectTimeout());
future.awaitUninterruptibly(this.config.getConnectTimeout());
protected void unlockInner(Collection<RLock> locks) { List<RFuture<Void>> futures = new ArrayList<RFuture<Void>>(locks.size()); for (RLock lock : locks) { futures.add(lock.unlockAsync()); } for (RFuture<Void> unlockFuture : futures) { unlockFuture.awaitUninterruptibly(); } }
for (Entry<RedisConnection, RFuture<String>> entry : result.entrySet()) { RFuture<String> f = entry.getValue(); f.awaitUninterruptibly(); if (!"PONG".equals(f.getNow())) { res = false;
masterFuture.awaitUninterruptibly(); if (!masterFuture.isSuccess()) { lastException = masterFuture.cause(); future.awaitUninterruptibly(); if (!future.isSuccess()) { lastException = future.cause();
private void retrieveAddresses() { ConnectionManager connectionManager = ((Redisson)redisson).getConnectionManager(); for (MasterSlaveEntry entry : connectionManager.getEntrySet()) { RFuture<RedisConnection> readFuture = entry.connectionReadOp(null); if (readFuture.awaitUninterruptibly((long)connectionManager.getConfig().getConnectTimeout()) && readFuture.isSuccess()) { RedisConnection connection = readFuture.getNow(); entry.releaseRead(connection); remoteAddress = (InetSocketAddress) connection.getChannel().remoteAddress(); localAddress = (InetSocketAddress) connection.getChannel().localAddress(); return; } RFuture<RedisConnection> writeFuture = entry.connectionWriteOp(null); if (writeFuture.awaitUninterruptibly((long)connectionManager.getConfig().getConnectTimeout()) && writeFuture.isSuccess()) { RedisConnection connection = writeFuture.getNow(); entry.releaseWrite(connection); remoteAddress = (InetSocketAddress) connection.getChannel().remoteAddress(); localAddress = (InetSocketAddress) connection.getChannel().localAddress(); return; } } }
connectionFuture.awaitUninterruptibly(); RedisConnection connection = connectionFuture.getNow(); if (connection == null) {
future.awaitUninterruptibly(this.config.getConnectTimeout());