Package tigase.pubsub.utils
Class LRUCacheWithFuture<K,V>
java.lang.Object
tigase.pubsub.utils.LRUCacheWithFuture<K,V>
- All Implemented Interfaces:
Cache<K,,V> tigase.stats.StatisticHolder
-
Nested Class Summary
Nested classes/interfaces inherited from interface tigase.pubsub.utils.Cache
Cache.CacheException, Cache.CacheSupplier<V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputeIfAbsent(K key, Cache.CacheSupplier<V> supplier) voidvoidvoidvoidgetStatistics(String compName, tigase.stats.StatisticsList list) keySet()putIfAbsent(K key, V value) voidsetMaxSize(int size) voidsetStatisticsPrefix(String prefix) intsize()voidstatisticExecutedIn(long executionTime) values()
-
Constructor Details
-
LRUCacheWithFuture
public LRUCacheWithFuture() -
LRUCacheWithFuture
public LRUCacheWithFuture(int maxSize)
-
-
Method Details
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceCache<K,V> - Throws:
Cache.CacheException
-
get
-
put
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceCache<K,V>
-
remove
-
keySet
-
values
-
size
public int size() -
setMaxSize
public void setMaxSize(int size) - Specified by:
setMaxSizein interfaceCache<K,V>
-
everyHour
public void everyHour()- Specified by:
everyHourin interfacetigase.stats.StatisticHolder
-
everyMinute
public void everyMinute()- Specified by:
everyMinutein interfacetigase.stats.StatisticHolder
-
everySecond
public void everySecond()- Specified by:
everySecondin interfacetigase.stats.StatisticHolder
-
getStatistics
- Specified by:
getStatisticsin interfacetigase.stats.StatisticHolder
-
setStatisticsPrefix
- Specified by:
setStatisticsPrefixin interfacetigase.stats.StatisticHolder
-
statisticExecutedIn
public void statisticExecutedIn(long executionTime) - Specified by:
statisticExecutedInin interfacetigase.stats.StatisticHolder
-