Class LRUCacheWithFuture<K,​V>

  • All Implemented Interfaces:
    Cache<K,​V>, tigase.stats.StatisticHolder

    public class LRUCacheWithFuture<K,​V>
    extends java.lang.Object
    implements Cache<K,​V>
    • Constructor Detail

      • LRUCacheWithFuture

        public LRUCacheWithFuture()
      • LRUCacheWithFuture

        public LRUCacheWithFuture​(int maxSize)
    • Method Detail

      • get

        public V get​(K key)
        Specified by:
        get in interface Cache<K,​V>
      • put

        public V put​(K key,
                     V value)
        Specified by:
        put in interface Cache<K,​V>
      • putIfAbsent

        public V putIfAbsent​(K key,
                             V value)
        Specified by:
        putIfAbsent in interface Cache<K,​V>
      • remove

        public V remove​(K key)
        Specified by:
        remove in interface Cache<K,​V>
      • keySet

        public java.util.Set<K> keySet()
        Specified by:
        keySet in interface Cache<K,​V>
      • values

        public java.util.stream.Stream<V> values()
        Specified by:
        values in interface Cache<K,​V>
      • size

        public int size()
        Specified by:
        size in interface Cache<K,​V>
      • setMaxSize

        public void setMaxSize​(int size)
        Specified by:
        setMaxSize in interface Cache<K,​V>
      • everyHour

        public void everyHour()
        Specified by:
        everyHour in interface tigase.stats.StatisticHolder
      • everyMinute

        public void everyMinute()
        Specified by:
        everyMinute in interface tigase.stats.StatisticHolder
      • everySecond

        public void everySecond()
        Specified by:
        everySecond in interface tigase.stats.StatisticHolder
      • getStatistics

        public void getStatistics​(java.lang.String compName,
                                  tigase.stats.StatisticsList list)
        Specified by:
        getStatistics in interface tigase.stats.StatisticHolder
      • setStatisticsPrefix

        public void setStatisticsPrefix​(java.lang.String prefix)
        Specified by:
        setStatisticsPrefix in interface tigase.stats.StatisticHolder
      • statisticExecutedIn

        public void statisticExecutedIn​(long executionTime)
        Specified by:
        statisticExecutedIn in interface tigase.stats.StatisticHolder