Package org.jgroups.util
Class AgeOutCache<K>
java.lang.Object
org.jgroups.util.AgeOutCache<K>
Cache which removes its elements after a certain time
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AgeOutCache.Handlerprivate final ConcurrentMap<K, Future> private longprivate final TimeScheduler -
Constructor Summary
ConstructorsConstructorDescriptionAgeOutCache(TimeScheduler timer, long timeout) AgeOutCache(TimeScheduler timer, long timeout, AgeOutCache.Handler handler) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclear()booleanlongvoidvoidremoveAll(Collection<K> keys) voidsetHandler(AgeOutCache.Handler handler) voidsetTimeout(long timeout) intsize()toString()
-
Field Details
-
timer
-
timeout
private long timeout -
map
-
handler
-
-
Constructor Details
-
AgeOutCache
-
AgeOutCache
-
-
Method Details