Module com.hazelcast.hibernate53
Package com.hazelcast.hibernate.local
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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptioncreate(com.hazelcast.config.MapConfig mapConfig) Creates anLocalRegionCache.EvictionConfigfor a given HazelcastMapConfig.default intDeprecated.com.hazelcast.config.MaxSizePolicyintgetSize()Returns the size which is used by theMaxSizePolicy.
-
Method Details
-
getTimeToLive
Duration getTimeToLive()- Returns:
- the maximum number of seconds for each entry to stay in the map.
-
getMaxSize
Deprecated.UsegetSize()instead -
getSize
int getSize()Returns the size which is used by theMaxSizePolicy.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
MaxSizePolicyof this eviction configuration
-
create
Creates anLocalRegionCache.EvictionConfigfor a given HazelcastMapConfig.- Parameters:
mapConfig- the MapConfig to use. If null, defaults will be used.
-