Class CachedPubSubRepository.SizedCache<V>

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      SizedCache​(int maxSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void everyHour()  
      void everyMinute()  
      void everySecond()  
      V get​(java.lang.Object key)  
      void getStatistics​(java.lang.String compName, tigase.stats.StatisticsList list)  
      protected boolean removeEldestEntry​(java.util.Map.Entry<CachedPubSubRepository.NodeKey,​V> eldest)  
      void setStatisticsPrefix​(java.lang.String prefix)  
      void statisticExecutedIn​(long executionTime)  
      • Methods inherited from class java.util.LinkedHashMap

        clear, containsValue, entrySet, forEach, getOrDefault, keySet, replaceAll, values
      • Methods inherited from class java.util.HashMap

        clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
    • Constructor Detail

      • SizedCache

        public SizedCache​(int maxSize)
    • Method Detail

      • 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