private RedisClusterAsyncCommands<byte[], byte[]> getAsyncConnection() { return connection.getAsyncConnection(); }
private RedisClusterAsyncCommands<byte[], byte[]> getAsyncConnection() { return connection.getAsyncConnection(); }
RedisClusterAsyncCommands<byte[], byte[]> getAsyncConnection() { return connection.getAsyncConnection(); }
RedisClusterAsyncCommands<byte[], byte[]> getAsyncConnection() { return connection.getAsyncConnection(); }
private RedisClusterAsyncCommands<byte[], byte[]> getAsyncConnection() { return connection.getAsyncConnection(); }
RedisClusterAsyncCommands<byte[], byte[]> getAsyncConnection() { return connection.getAsyncConnection(); }
private RedisClusterAsyncCommands<byte[], byte[]> getAsyncConnection() { return connection.getAsyncConnection(); }
RedisClusterAsyncCommands<byte[], byte[]> getAsyncConnection() { return connection.getAsyncConnection(); }
private RedisClusterAsyncCommands<byte[], byte[]> getAsyncConnection() { return connection.getAsyncConnection(); }
private RedisClusterAsyncCommands<byte[], byte[]> getAsyncConnection() { return connection.getAsyncConnection(); }
private RedisClusterAsyncCommands<byte[], byte[]> getAsyncConnection() { return connection.getAsyncConnection(); }
@Override public RedisClusterAsyncCommands<byte[], byte[]> getNativeConnection() { LettuceSubscription subscription = this.subscription; return (subscription != null ? subscription.getNativeConnection().async() : getAsyncConnection()); }
@Override public String ping() { try { if (isPipelined()) { pipeline(newLettuceResult(getAsyncConnection().ping())); return null; } if (isQueueing()) { transaction(newLettuceResult(getAsyncConnection().ping())); return null; } return getConnection().ping(); } catch (Exception ex) { throw convertLettuceAccessException(ex); } }
@Override public byte[] echo(byte[] message) { try { if (isPipelined()) { pipeline(newLettuceResult(getAsyncConnection().echo(message))); return null; } if (isQueueing()) { transaction(newLettuceResult(getAsyncConnection().echo(message))); return null; } return getConnection().echo(message); } catch (Exception ex) { throw convertLettuceAccessException(ex); } }
@Override public Long publish(byte[] channel, byte[] message) { try { if (isPipelined()) { pipeline(newLettuceResult(getAsyncConnection().publish(channel, message))); return null; } if (isQueueing()) { transaction(newLettuceResult(getAsyncConnection().publish(channel, message))); return null; } return getConnection().publish(channel, message); } catch (Exception ex) { throw convertLettuceAccessException(ex); } }
@Override public void select(int dbIndex) { if (asyncSharedConn != null) { throw new UnsupportedOperationException("Selecting a new database not supported due to shared connection. " + "Use separate ConnectionFactorys to work with multiple databases"); } try { this.dbIndex = dbIndex; if (isPipelined()) { pipeline(new LettuceStatusResult(getAsyncConnection().dispatch(CommandType.SELECT, new StatusOutput<>(ByteArrayCodec.INSTANCE), new CommandArgs<>(ByteArrayCodec.INSTANCE).add(dbIndex)))); return; } if (isQueueing()) { transaction(newLettuceStatusResult(getAsyncConnection().dispatch(CommandType.SELECT, new StatusOutput<>(ByteArrayCodec.INSTANCE), new CommandArgs<>(ByteArrayCodec.INSTANCE).add(dbIndex)))); return; } ((RedisCommands) getConnection()).select(dbIndex); } catch (Exception ex) { throw convertLettuceAccessException(ex); } }
RedisClusterAsyncCommands<byte[], byte[]> connectionImpl = getAsyncConnection();
private RedisClusterAsyncCommands<byte[], byte[]> getAsyncConnection() { return connection.getAsyncConnection(); }
@Override public RedisClusterAsyncCommands<byte[], byte[]> getNativeConnection() { LettuceSubscription subscription = this.subscription; return (subscription != null ? subscription.getNativeConnection().async() : getAsyncConnection()); }
@Override public RedisClusterAsyncCommands<byte[], byte[]> getNativeConnection() { LettuceSubscription subscription = this.subscription; return (subscription != null ? subscription.getNativeConnection().async() : getAsyncConnection()); }