@Override public <T, R> RFuture<R> readAsync(String key, Codec codec, RedisCommand<T> command, Object... params) { RPromise<R> mainPromise = createPromise(); NodeSource source = getNodeSource(key); async(true, source, codec, command, params, mainPromise, 0, false); return mainPromise; }
@Override public <T, R> RFuture<R> readAsync(byte[] key, Codec codec, RedisCommand<T> command, Object... params) { RPromise<R> mainPromise = createPromise(); NodeSource source = getNodeSource(key); async(true, source, codec, command, params, mainPromise, 0, false); return mainPromise; }
@Override public <T, R> RFuture<R> writeAsync(String key, Codec codec, RedisCommand<T> command, Object... params) { RPromise<R> mainPromise = createPromise(); NodeSource source = getNodeSource(key); async(false, source, codec, command, params, mainPromise, 0, false); return mainPromise; }
@Override public <T, R> RFuture<R> readAsync(byte[] key, Codec codec, RedisCommand<T> command, Object... params) { RPromise<R> mainPromise = createPromise(); NodeSource source = getNodeSource(key); async(true, source, codec, command, params, mainPromise, 0, false); return mainPromise; }
@Override public <T, R> RFuture<R> readAsync(RedisClient client, MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params) { RPromise<R> mainPromise = createPromise(); async(true, new NodeSource(entry, client), codec, command, params, mainPromise, 0, false); return mainPromise; }
@Override public <T, R> RFuture<R> readAsync(String key, Codec codec, RedisCommand<T> command, Object... params) { RPromise<R> mainPromise = createPromise(); NodeSource source = getNodeSource(key); async(true, source, codec, command, params, mainPromise, 0, false); return mainPromise; }
@Override public <T, R> RFuture<R> writeAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params) { RPromise<R> mainPromise = createPromise(); async(false, new NodeSource(entry), codec, command, params, mainPromise, 0, false); return mainPromise; }
@Override public <T, R> RFuture<R> readAsync(RedisClient client, MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params) { RPromise<R> mainPromise = createPromise(); async(true, new NodeSource(entry, client), codec, command, params, mainPromise, 0, false); return mainPromise; }
public <T, R> RFuture<R> writeAsync(byte[] key, Codec codec, RedisCommand<T> command, Object... params) { RPromise<R> mainPromise = createPromise(); NodeSource source = getNodeSource(key); async(false, source, codec, command, params, mainPromise, 0, false); return mainPromise; }
@Override public <T, R> RFuture<R> readAsync(RedisClient client, Codec codec, RedisCommand<T> command, Object... params) { RPromise<R> mainPromise = createPromise(); async(true, new NodeSource(client), codec, command, params, mainPromise, 0, false); return mainPromise; }
public <T, R> RFuture<R> readAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params) { RPromise<R> mainPromise = createPromise(); async(true, new NodeSource(entry), codec, command, params, mainPromise, 0, false); return mainPromise; }
public <T, R> RFuture<R> writeAsync(byte[] key, Codec codec, RedisCommand<T> command, Object... params) { RPromise<R> mainPromise = createPromise(); NodeSource source = getNodeSource(key); async(false, source, codec, command, params, mainPromise, 0, false); return mainPromise; }
@Override public <T, R> RFuture<R> readAsync(RedisClient client, Codec codec, RedisCommand<T> command, Object... params) { RPromise<R> mainPromise = createPromise(); async(true, new NodeSource(client), codec, command, params, mainPromise, 0, false); return mainPromise; }
@Override public <T, R> RFuture<R> writeAsync(String key, Codec codec, RedisCommand<T> command, Object... params) { RPromise<R> mainPromise = createPromise(); NodeSource source = getNodeSource(key); async(false, source, codec, command, params, mainPromise, 0, false); return mainPromise; }
public <T, R> RFuture<R> readAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params) { RPromise<R> mainPromise = createPromise(); async(true, new NodeSource(entry), codec, command, params, mainPromise, 0, false); return mainPromise; }
@Override public <T, R> RFuture<R> writeAsync(MasterSlaveEntry entry, Codec codec, RedisCommand<T> command, Object... params) { RPromise<R> mainPromise = createPromise(); async(false, new NodeSource(entry), codec, command, params, mainPromise, 0, false); return mainPromise; }
public <T, R> RFuture<R> readAsync(RedisClient client, byte[] key, Codec codec, RedisCommand<T> command, Object... params) { RPromise<R> mainPromise = createPromise(); int slot = connectionManager.calcSlot(key); async(true, new NodeSource(slot, client), codec, command, params, mainPromise, 0, false); return mainPromise; }
@Override public <T, R> RFuture<R> readAsync(RedisClient client, String name, Codec codec, RedisCommand<T> command, Object... params) { RPromise<R> mainPromise = createPromise(); int slot = connectionManager.calcSlot(name); async(true, new NodeSource(slot, client), codec, command, params, mainPromise, 0, false); return mainPromise; }
@Override public void run(Timeout timeout) throws Exception { async(details.isReadOnlyMode(), source, details.getCodec(), details.getCommand(), details.getParams(), details.getMainPromise(), details.getAttempt(), ignoreRedirect); } }, 1, TimeUnit.SECONDS);
@Override public void run(Timeout timeout) throws Exception { async(details.isReadOnlyMode(), source, details.getCodec(), details.getCommand(), details.getParams(), details.getMainPromise(), details.getAttempt(), ignoreRedirect); } }, 1, TimeUnit.SECONDS);