首页 > 其他 > 详细

Void & void Void用在泛型

时间:2018-11-27 15:54:53      阅读:154      评论:0      收藏:0      [点我收藏+]
public Void setStr(String key,String value)throws Exception{

RetryTemplate retryTemplate=initRetryTemplate();
retryTemplate.execute(new RetryCallback<Void,Exception>() {
int i = 0;
// 重试操作
@Override
public Void doWithRetry(RetryContext retryContext) throws Exception {
log.info("retry count: {}", retryContext.getRetryCount());
stringRedisTemplate.opsForValue().set(key,value);
// return len(i++);
return null;
}
});
return null;
}

Void & void Void用在泛型

原文:https://www.cnblogs.com/junglecat/p/10026406.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!