Class HeapCache.Tunable

    • Field Detail

      • sharpExpirySafetyGapMillis

        public long sharpExpirySafetyGapMillis
        When sharp expiry is enabled, the expiry timer goes before the actual expiry to switch back to a time checking scheme when the cache is accessed. This prevents that an expired value gets served by the cache when the time is too late. Experiments showed that a value of one second is usually sufficient.

        OS scheduling is not reliable on virtual servers (e.g. KVM) to give the expiry task compute time on a busy server. To be safe in extreme cases, this parameter is set to a high value.

      • minimumStatisticsCreationDeltaMillis

        public int minimumStatisticsCreationDeltaMillis
        Some statistic values need processing time to gather and compute it. This is a safety time delta, to ensure that the machine is not busy due to statistics generation. Default: 333.
      • minimumStatisticsCreationTimeDeltaFactor

        public int minimumStatisticsCreationTimeDeltaFactor
        Factor of the statistics creation time, that determines the time difference when new statistics are generated.
      • exceptionPropagator

        public org.cache2k.io.ExceptionPropagator exceptionPropagator
      • segmentCountOverride

        public int segmentCountOverride
        Override parameter for segment count. Has to be power of two, e.g. 2, 4, 8, etc. Invalid numbers will be replaced by the next higher power of two. Default is 0, no override.
      • timerLagMillis

        public long timerLagMillis
    • Constructor Detail

      • Tunable

        public Tunable()