public abstract class BaseRedisCallBack<T> extends Object implements RedisCallBack<T>
| 构造器和说明 |
|---|
BaseRedisCallBack() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract T |
doOperation(RedisClient client)
实际执行的命令
|
Exception |
getException()
获取操作异常,成功为null
|
T |
getResult()
获取操作结果
|
boolean |
isNullValueReGet()
get if support retry get on return null value
|
boolean |
operation(List<RedisClient> clients,
boolean read,
Object key,
RedisClientStatusNotifier notifier)
do real operation to redis server
|
void |
setNullValueReGet(boolean nullValueReGet)
set if support retry get on return null value
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOptionTypepublic final boolean operation(List<RedisClient> clients, boolean read, Object key, RedisClientStatusNotifier notifier)
RedisCallBackoperation 在接口中 RedisCallBack<T>clients - RedisClient listread - if read actionkey - 关键字notifier - RedisClientStatusNotifier instanceprotected abstract T doOperation(RedisClient client) throws Exception
client - RedisClient instanceException - in case of process cache exceptionpublic T getResult()
RedisCallBackgetResult 在接口中 RedisCallBack<T>public Exception getException()
RedisCallBackgetException 在接口中 RedisCallBack<T>public boolean isNullValueReGet()
RedisCallBackisNullValueReGet 在接口中 RedisCallBack<T>public void setNullValueReGet(boolean nullValueReGet)
RedisCallBacksetNullValueReGet 在接口中 RedisCallBack<T>nullValueReGet - true support retry get on return null valueCopyright © 2018. All rights reserved.