public abstract class AbstractAsyncRedisClient extends Object implements AsyncRedisClient
Constructor and Description |
---|
AbstractAsyncRedisClient() |
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.
|
abstract 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.
|
abstract Future<RedisCommandInfo[]> |
submitCommands(RedisCommandInfo[] commands,
AsyncHandler<RedisCommandInfo[]> completionHandler,
boolean requireFutureResult,
boolean isSyncCallback)
Submit multiple Redis Commands.
|
public abstract Future<RedisCommandInfo[]> submitCommands(RedisCommandInfo[] commands, AsyncHandler<RedisCommandInfo[]> completionHandler, boolean requireFutureResult, boolean isSyncCallback)
AsyncRedisClient
submitCommands
in interface AsyncRedisClient
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.public abstract Future<RedisCommandInfo> submitCommand(RedisCommandInfo command, AsyncHandler<RedisCommandInfo> completionHandler, boolean requireFutureResult, boolean isSyncCallback)
AsyncRedisClient
submitCommand
in interface AsyncRedisClient
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.public Future<RedisCommandInfo[]> submitCommands(RedisCommandInfo[] commands)
AsyncRedisClient
submitCommands
in interface AsyncRedisClient
commands
- commands to run along with their parametersAsyncRedisClient.submitCommands(org.aredis.cache.RedisCommandInfo[])
public void submitCommands(RedisCommandInfo[] commands, AsyncHandler<RedisCommandInfo[]> completionHandler)
AsyncRedisClient
submitCommands
in interface AsyncRedisClient
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.AsyncRedisClient.submitCommands(org.aredis.cache.RedisCommandInfo[], org.aredis.cache.AsyncHandler)
public Future<RedisCommandInfo> submitCommand(RedisCommandInfo command)
AsyncRedisClient
submitCommand
in interface AsyncRedisClient
command
- command to run along with its parametersAsyncRedisClient.submitCommand(org.aredis.cache.RedisCommandInfo)
public void submitCommand(RedisCommandInfo command, AsyncHandler<RedisCommandInfo> completionHandler)
AsyncRedisClient
submitCommand
in interface AsyncRedisClient
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.AsyncRedisClient.submitCommand(org.aredis.cache.RedisCommandInfo, org.aredis.cache.AsyncHandler)
public Future<RedisCommandInfo> submitCommand(RedisCommand command, Object... params)
AsyncRedisClient
submitCommand
in interface AsyncRedisClient
command
- command to runparams
- command parameterspublic Future<RedisCommandInfo> submitCommand(Object metaData, RedisCommand command, Object... params)
AsyncRedisClient
submitCommand
in interface AsyncRedisClient
metaData
- Metadata to be used if the DataHandler requires metadata like the Object classcommand
- command to runparams
- command parameterspublic Future<RedisCommandInfo> submitCommand(DataHandler dataHandler, RedisCommand command, Object... params)
AsyncRedisClient
submitCommand
in interface AsyncRedisClient
dataHandler
- Data Handler to be used. Pass null to use the default Data Handlercommand
- command to runparams
- command parameterspublic Future<RedisCommandInfo> submitCommand(DataHandler dataHandler, Object metaData, RedisCommand command, Object... params)
AsyncRedisClient
submitCommand
in interface AsyncRedisClient
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 parameterspublic void sendCommand(RedisCommand command, Object... params)
AsyncRedisClient
sendCommand
in interface AsyncRedisClient
command
- command to runparams
- command parameterspublic void sendCommand(Object metaData, RedisCommand command, Object... params)
AsyncRedisClient
sendCommand
in interface AsyncRedisClient
metaData
- Metadata to be used if the DataHandler requires metadata like the Object classcommand
- command to runparams
- command parameterspublic void sendCommand(DataHandler dataHandler, RedisCommand command, Object... params)
AsyncRedisClient
sendCommand
in interface AsyncRedisClient
dataHandler
- Data Handler to be used. Pass null to use the default Data Handlercommand
- command to runparams
- command parameterspublic void sendCommand(DataHandler dataHandler, Object metaData, RedisCommand command, Object... params)
AsyncRedisClient
sendCommand
in interface AsyncRedisClient
metaData
- Metadata to be used if the DataHandler requires metadata like the Object classcommand
- command to runparams
- command parameterspublic void submitCommand(AsyncHandler<RedisCommandInfo> completionHandler, RedisCommand command, Object... params)
AsyncRedisClient
submitCommand
in interface AsyncRedisClient
completionHandler
- Handler to call upon command completion.command
- command to runparams
- command parameterspublic void submitCommand(AsyncHandler<RedisCommandInfo> completionHandler, Object metaData, RedisCommand command, Object... params)
AsyncRedisClient
submitCommand
in interface AsyncRedisClient
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 parameterspublic void submitCommand(AsyncHandler<RedisCommandInfo> completionHandler, DataHandler dataHandler, RedisCommand command, Object... params)
AsyncRedisClient
submitCommand
in interface AsyncRedisClient
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 parameterspublic void submitCommand(AsyncHandler<RedisCommandInfo> completionHandler, DataHandler dataHandler, Object metaData, RedisCommand command, Object... params)
AsyncRedisClient
submitCommand
in interface AsyncRedisClient
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.