public static final int ALIVETIME = 600000;
public static final String QUEUE = "hnyz_gs_queue";

@Bean
public Queue cretaeQueue(){
// return new Queue(QUEUE,true);
Map<String, Object> argMap = new HashMap<>();
// 设置消息存活时间
argMap.put("x-message-ttl",ALIVETIME);
return new Queue(QUEUE, true, false, false, argMap);

}

相关文章:

  • 2021-08-03
  • 2021-09-23
  • 2021-07-15
  • 2021-03-31
  • 2021-12-02
  • 2022-01-02
猜你喜欢
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-01-31
  • 2021-05-19
  • 2021-12-23
相关资源
相似解决方案