V
- type of valueR
- type of returned valuepublic class RedisExecutor<V,R> extends Object
Constructor and Description |
---|
RedisExecutor(boolean readOnlyMode,
NodeSource source,
Codec codec,
RedisCommand<V> command,
Object[] params,
RPromise<R> mainPromise,
boolean ignoreRedirect,
ConnectionManager connectionManager,
RedissonObjectBuilder objectBuilder) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkAttemptPromise(RPromise<R> attemptFuture,
RFuture<RedisConnection> connectionFuture) |
protected <T> RedisException |
convertException(RFuture<T> future) |
void |
execute() |
protected void |
free() |
protected void |
free(Object[] params) |
protected Codec |
getCodec(Codec codec) |
protected RFuture<RedisConnection> |
getConnection() |
protected void |
handleError(RFuture<RedisConnection> connectionFuture,
Throwable cause) |
protected void |
handleResult(RPromise<R> attemptPromise,
RFuture<RedisConnection> connectionFuture) |
protected void |
handleSuccess(RPromise<R> promise,
RFuture<RedisConnection> connectionFuture,
R res) |
protected void |
onException() |
protected void |
releaseConnection(RPromise<R> attemptPromise,
RFuture<RedisConnection> connectionFuture) |
protected void |
sendCommand(RPromise<R> attemptPromise,
RedisConnection connection) |
static Object |
tryHandleReference(RedissonObjectBuilder objectBuilder,
Object o) |
public RedisExecutor(boolean readOnlyMode, NodeSource source, Codec codec, RedisCommand<V> command, Object[] params, RPromise<R> mainPromise, boolean ignoreRedirect, ConnectionManager connectionManager, RedissonObjectBuilder objectBuilder)
public void execute()
protected void free()
protected void free(Object[] params)
protected void checkAttemptPromise(RPromise<R> attemptFuture, RFuture<RedisConnection> connectionFuture)
protected void handleResult(RPromise<R> attemptPromise, RFuture<RedisConnection> connectionFuture) throws ReflectiveOperationException
ReflectiveOperationException
protected void onException()
protected void handleError(RFuture<RedisConnection> connectionFuture, Throwable cause)
protected void handleSuccess(RPromise<R> promise, RFuture<RedisConnection> connectionFuture, R res) throws ReflectiveOperationException
ReflectiveOperationException
public static Object tryHandleReference(RedissonObjectBuilder objectBuilder, Object o) throws ReflectiveOperationException
ReflectiveOperationException
protected void sendCommand(RPromise<R> attemptPromise, RedisConnection connection)
protected void releaseConnection(RPromise<R> attemptPromise, RFuture<RedisConnection> connectionFuture)
protected RFuture<RedisConnection> getConnection()
protected <T> RedisException convertException(RFuture<T> future)
Copyright © 2014–2020 Redisson. All rights reserved.