public interface RedisCallBack<T>
| 限定符和类型 | 方法和说明 |
|---|---|
Exception |
getException()
获取操作异常,成功为null
|
String |
getOptionType()
获取操作类型
|
T |
getResult()
获取操作结果
|
boolean |
isNullValueReGet()
get if support retry get on return null value
|
boolean |
operation(List<RedisClient> client,
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
|
boolean operation(List<RedisClient> client, boolean read, Object key, RedisClientStatusNotifier notifier)
client - RedisClient listread - if read actionkey - 关键字notifier - RedisClientStatusNotifier instanceString getOptionType()
T getResult()
Exception getException()
boolean isNullValueReGet()
void setNullValueReGet(boolean nullValueReGet)
nullValueReGet - true support retry get on return null valueCopyright © 2018. All rights reserved.