Module com.hazelcast.hibernate53
Package com.hazelcast.hibernate.local
Class LocalRegionCache.EvictionConfig.DefaultEvictionConfig
java.lang.Object
com.hazelcast.hibernate.local.LocalRegionCache.EvictionConfig.DefaultEvictionConfig
- All Implemented Interfaces:
LocalRegionCache.EvictionConfig
- Enclosing interface:
- LocalRegionCache.EvictionConfig
public static class LocalRegionCache.EvictionConfig.DefaultEvictionConfig
extends Object
implements LocalRegionCache.EvictionConfig
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.hazelcast.hibernate.local.LocalRegionCache.EvictionConfig
LocalRegionCache.EvictionConfig.DefaultEvictionConfig -
Method Summary
Modifier and TypeMethodDescriptioncom.hazelcast.config.MaxSizePolicyintgetSize()Returns the size which is used by theMaxSizePolicy.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hazelcast.hibernate.local.LocalRegionCache.EvictionConfig
getMaxSize
-
Method Details
-
getTimeToLive
- Specified by:
getTimeToLivein interfaceLocalRegionCache.EvictionConfig- Returns:
- the maximum number of seconds for each entry to stay in the map.
-
getSize
public int getSize()Description copied from interface:LocalRegionCache.EvictionConfigReturns the size which is used by theMaxSizePolicy.The interpretation of the value depends on the configured
MaxSizePolicy.- Specified by:
getSizein interfaceLocalRegionCache.EvictionConfig- Returns:
- the size which is used by the
MaxSizePolicy
-
getMaxSizePolicy
public com.hazelcast.config.MaxSizePolicy getMaxSizePolicy()- Specified by:
getMaxSizePolicyin interfaceLocalRegionCache.EvictionConfig- Returns:
- the
MaxSizePolicyof this eviction configuration
-