Skip to content

A map that allows automatic removal of elements after a specified timeout.

License

Notifications You must be signed in to change notification settings

imbusy/java-expire-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-expire-map

A map that allows automatic removal of elements after a specified timeout.

Implementation details

Inernally uses a ConcurrentHashMap to store the key, (value, removal timestamp) values and a ConcurrentSkipListSet to keep an ordered set of key, (value, removal timestamp) ordered by timestamp to keep track of values to be removed.

An independent thread is created to remove the elements when they reach their removal timestamp.

About

A map that allows automatic removal of elements after a specified timeout.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages