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前端其它相关文章！