Class L1Configuration

  • All Implemented Interfaces:
    Matchable<L1Configuration>

    public class L1Configuration
    extends java.lang.Object
    implements Matchable<L1Configuration>
    Configures the L1 cache behavior in 'distributed' caches instances. In any other cache modes, this element is ignored.
    • Method Detail

      • enabled

        public boolean enabled()
      • invalidationThreshold

        public int invalidationThreshold()

        Determines whether a multicast or a web of unicasts are used when performing L1 invalidations.

        By default multicast will be used.

        If the threshold is set to -1, then unicasts will always be used. If the threshold is set to 0, then multicast will be always be used.

      • cleanupTaskFrequency

        public long cleanupTaskFrequency()
        Determines how often a cleanup thread runs to clean up an internal log of requestors for a specific key
      • lifespan

        public long lifespan()
        Maximum lifespan of an entry placed in the L1 cache. Default 10 minutes.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object