public interface AsyncRedisClient
Modifier and Type | Method and Description |
---|---|
void |
sendCommand(DataHandler dataHandler,
Object metaData,
RedisCommand command,
Object... params)
Send a command without looking for a return value.
|
void |
sendCommand(DataHandler dataHandler,
RedisCommand command,
Object... params)
Send a command without looking for a return value.
|
void |
sendCommand(Object metaData,
RedisCommand command,
Object... params)
Send a command without looking for a return value.
|
void |
sendCommand(RedisCommand command,
Object... params)
Send a command without looking for a return value.
|
void |
submitCommand(AsyncHandler<RedisCommandInfo> completionHandler,
DataHandler dataHandler,
Object metaData,
RedisCommand command,
Object... params)
Submit a Redis Command.
|
void |
submitCommand(AsyncHandler<RedisCommandInfo> completionHandler,
DataHandler dataHandler,
RedisCommand command,
Object... params)
Submit a Redis Command.
|
void |
submitCommand(AsyncHandler<RedisCommandInfo> completionHandler,
Object metaData,
RedisCommand command,
Object... params)
Submit a Redis Command.
|
void |
submitCommand(AsyncHandler<RedisCommandInfo> completionHandler,
RedisCommand command,
Object... params)
Submit a Redis Command.
|
Future<RedisCommandInfo> |
submitCommand(DataHandler dataHandler,
Object metaData,
RedisCommand command,
Object... params)
Submit a Redis Command.
|
Future<RedisCommandInfo> |
submitCommand(DataHandler dataHandler,
RedisCommand command,
Object... params)
Submit a Redis Command.
|
Future<RedisCommandInfo> |
submitCommand(Object metaData,
RedisCommand command,
Object... params)
Submit a Redis Command.
|
Future<RedisCommandInfo> |
submitCommand(RedisCommandInfo command)
Submit a Redis Command.
|
void |
submitCommand(RedisCommandInfo command,
AsyncHandler<RedisCommandInfo> completionHandler)
Submit a Redis Command.
|
Future<RedisCommandInfo> |
submitCommand(RedisCommandInfo command,
AsyncHandler<RedisCommandInfo> completionHandler,
boolean requireFutureResult,
boolean isSyncCallback)
Submit a Redis Command.
|
Future<RedisCommandInfo> |
submitCommand(RedisCommand command,
Object... params)
Submit a Redis Command.
|
Future<RedisCommandInfo[]> |
submitCommands(RedisCommandInfo[] commands)
Submit multiple Redis Commands.
|
void |
submitCommands(RedisCommandInfo[] commands,
AsyncHandler<RedisCommandInfo[]> completionHandler)
Submit multiple Redis Commands.
|
Future<RedisCommandInfo[]> |
submitCommands(RedisCommandInfo[] commands,
AsyncHandler<RedisCommandInfo[]> completionHandler,
boolean requireFutureResult,
boolean isSyncCallback)
Submit multiple Redis Commands.
|
Future<RedisCommandInfo[]> submitCommands(RedisCommandInfo[] commands, AsyncHandler<RedisCommandInfo[]> completionHandler, boolean requireFutureResult, boolean isSyncCallback)
commands
- commands to run along with their parameterscompletionHandler
- Handler to call upon command completion. Can be nullrequireFutureResult
- Whether a Future return value is requiredisSyncCallback
- If true the callback is made directly by the Socket Channel Thread and not the configured executor. Pass true only if the handler logic is extremely light like moving the command to another Q.Future<RedisCommandInfo> submitCommand(RedisCommandInfo command, AsyncHandler<RedisCommandInfo> completionHandler, boolean requireFutureResult, boolean isSyncCallback)
command
- command to run along with its parameterscompletionHandler
- Handler to call upon command completion. Can be nullrequireFutureResult
- Whether a Future return value is requiredisSyncCallback
- If true the callback is made directly by the Socket Channel Thread and not the configured executor. Pass true only if the handler logic is extremely light like moving the command to another Q.Future<RedisCommandInfo[]> submitCommands(RedisCommandInfo[] commands)
commands
- commands to run along with their parametersvoid submitCommands(RedisCommandInfo[] commands, AsyncHandler<RedisCommandInfo[]> completionHandler)
commands
- commands to run along with their parameterscompletionHandler
- Handler to call upon command completion. Can be null if you want to send the commands and forget.Future<RedisCommandInfo> submitCommand(RedisCommandInfo command)
command
- command to run along with its parametersvoid submitCommand(RedisCommandInfo command, AsyncHandler<RedisCommandInfo> completionHandler)
command
- command to run along with its parameterscompletionHandler
- Handler to call upon command completion. Can be null if you want to send the command and forget.Future<RedisCommandInfo> submitCommand(RedisCommand command, Object... params)
command
- command to runparams
- command parametersFuture<RedisCommandInfo> submitCommand(Object metaData, RedisCommand command, Object... params)
metaData
- Metadata to be used if the DataHandler requires metadata like the Object classcommand
- command to runparams
- command parametersFuture<RedisCommandInfo> submitCommand(DataHandler dataHandler, RedisCommand command, Object... params)
dataHandler
- Data Handler to be used. Pass null to use the default Data Handlercommand
- command to runparams
- command parametersFuture<RedisCommandInfo> submitCommand(DataHandler dataHandler, Object metaData, RedisCommand command, Object... params)
dataHandler
- Data Handler to be used. Pass null to use the default Data HandlermetaData
- Metadata to be used if the DataHandler requires metadata like the Object classcommand
- command to runparams
- command parametersvoid sendCommand(RedisCommand command, Object... params)
command
- command to runparams
- command parametersvoid sendCommand(Object metaData, RedisCommand command, Object... params)
metaData
- Metadata to be used if the DataHandler requires metadata like the Object classcommand
- command to runparams
- command parametersvoid sendCommand(DataHandler dataHandler, RedisCommand command, Object... params)
dataHandler
- Data Handler to be used. Pass null to use the default Data Handlercommand
- command to runparams
- command parametersvoid sendCommand(DataHandler dataHandler, Object metaData, RedisCommand command, Object... params)
metaData
- Metadata to be used if the DataHandler requires metadata like the Object classcommand
- command to runparams
- command parametersvoid submitCommand(AsyncHandler<RedisCommandInfo> completionHandler, RedisCommand command, Object... params)
completionHandler
- Handler to call upon command completion.command
- command to runparams
- command parametersvoid submitCommand(AsyncHandler<RedisCommandInfo> completionHandler, Object metaData, RedisCommand command, Object... params)
completionHandler
- Handler to call upon command completion.metaData
- Metadata to be used if the DataHandler requires metadata like the Object classcommand
- command to runparams
- command parametersvoid submitCommand(AsyncHandler<RedisCommandInfo> completionHandler, DataHandler dataHandler, RedisCommand command, Object... params)
completionHandler
- Handler to call upon command completion.dataHandler
- Data Handler to be used. Pass null to use the default Data Handlercommand
- command to runparams
- command parametersvoid submitCommand(AsyncHandler<RedisCommandInfo> completionHandler, DataHandler dataHandler, Object metaData, RedisCommand command, Object... params)
completionHandler
- Handler to call upon command completion.dataHandler
- Data Handler to be used. Pass null to use the default Data HandlermetaData
- Metadata to be used if the DataHandler requires metadata like the Object classcommand
- command to runparams
- command parametersCopyright © 2013- Suresh Mahalingam. All Rights Reserved.