在使用ConcurrentSkipListMap的时候,使用的远程调试,结果到往这个map里面put的时候,死活没有过去,最后发现时这个map的键必须实现Comparable接口,无奈需要的键必须是jms的Message类型的,为了保持线程安全并且map有序,最后使用了Collections.synchronizedMap(new LinedHashMap(Message, MsgSender));
ConcurrentSkipListMap
最新推荐文章于 2025-05-16 19:58:57 发布