1. 首页
  2. 数据库
  3. 其它
  4. delay queue:基于Redis的延迟数值系统 源码

delay queue:基于Redis的延迟数值系统 源码

上传者: 2021-04-26 22:59:23上传 ZIP文件 14.74KB 热度 11次
延迟队列 用法:当有消息达到延迟时间的时候会触发peekCallback。 public class TestRedisDelayQueue { JedisCluster jedisCluster = null ; RedisDelayQueue queue = null ; @Before public void init () { String ip = " 192.168.2.160 " ; Set nodes = new HashSet<> (); nodes . add( new HostAndPort (ip, 7701 )); nodes . add( new HostAndPort (ip, 7702 )); nodes . add( new HostAndPort (ip, 7703 )); nodes .
下载地址
用户评论