Class AgeOutCache<K>
java.lang.Object
org.jgroups.util.AgeOutCache<K>
- Type Parameters:
K- K
Cache which removes its elements after a certain time
- Author:
- Bela Ban
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAgeOutCache(TimeScheduler timer, long timeout) AgeOutCache(TimeScheduler timer, long timeout, AgeOutCache.Handler<K> handler) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclear()booleanlongvoidvoidremoveAll(Collection<K> keys) voidsetHandler(AgeOutCache.Handler<K> handler) voidsetTimeout(long timeout) intsize()toString()
-
Constructor Details
-
AgeOutCache
-
AgeOutCache
-
-
Method Details
-
getTimeout
public long getTimeout() -
setTimeout
public void setTimeout(long timeout) -
getHandler
-
setHandler
-
add
-
contains
-
remove
-
removeAll
-
clear
public void clear() -
size
public int size() -
toString
-