Expiring Map with signaling capability when element expires

Can any one point to a good implementation, if one exists, of what I call `Ticking collection/Map` in Java. Where the elements in the collection has some expiry time. When a particular element of the collection is expired then collection raises a certain kind of alarm or call a handler. I saw a Guava implementation of an expiring map which automatically removes the key which has been expired. [Expiring map](https://stackoverflow.com/questions/3802370/java-time-based-map-with-expiring-keys)
So, why isn't the Guava implementation acceptable to you?

以上就是Expiring Map with signaling capability when element expires的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准