Package org.jgroups.util
Class AgeOutCache<K>
java.lang.Object
org.jgroups.util.AgeOutCache<K>
Cache which removes its elements after a certain time
- Version:
- $Id: AgeOutCache.java,v 1.1.2.2 2009/04/15 07:18:47 belaban Exp $
- Author:
- Bela Ban
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAgeOutCache
(ScheduledExecutorService timer, long timeout) AgeOutCache
(ScheduledExecutorService timer, long timeout, AgeOutCache.Handler handler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
long
void
void
removeAll
(Collection<K> keys) void
setHandler
(AgeOutCache.Handler handler) void
setTimeout
(long timeout) int
size()
toString()