Interface LocalRegionCache.EvictionConfig

All Known Implementing Classes:
LocalRegionCache.EvictionConfig.DefaultEvictionConfig
Enclosing class:
LocalRegionCache

public static interface LocalRegionCache.EvictionConfig
Generic representation of eviction-related configuration

See EvictionConfig

  • Method Details

    • getTimeToLive

      Duration getTimeToLive()
      Returns:
      the maximum number of seconds for each entry to stay in the map.
    • getMaxSize

      @Deprecated default int getMaxSize()
      Deprecated.
      Use getSize() instead
    • getSize

      int getSize()
      Returns the size which is used by the MaxSizePolicy.

      The interpretation of the value depends on the configured MaxSizePolicy.

      Returns:
      the size which is used by the MaxSizePolicy
    • getMaxSizePolicy

      com.hazelcast.config.MaxSizePolicy getMaxSizePolicy()
      Returns:
      the MaxSizePolicy of this eviction configuration
    • create

      static LocalRegionCache.EvictionConfig create(com.hazelcast.config.MapConfig mapConfig)
      Creates an LocalRegionCache.EvictionConfig for a given Hazelcast MapConfig.
      Parameters:
      mapConfig - the MapConfig to use. If null, defaults will be used.