Package org.openspaces.core.space
Class CustomCachePolicy
java.lang.Object
org.openspaces.core.space.LruCachePolicy
org.openspaces.core.space.CustomCachePolicy
- All Implemented Interfaces:
CachePolicy
Configures the Space to run in Custom mode. Defaults value for all configuration will be based on
the schema chosen.
- Since:
- 9.1.0
- Author:
- Sagi Bernstein
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevictionStrategy(SpaceEvictionStrategy evictionStrategy) Sets the custom eviction strategy to be used by the space, When using a Custom Cache Policy this property must be set.setEvictionStrategy(SpaceEvictionStrategy evictionStrategy) Sets the custom eviction strategy to be used by the space, When using a Custom Cache Policy this property must be set.toProps()Methods inherited from class org.openspaces.core.space.LruCachePolicy
initialLoadPercentage, setInitialLoadPercentage, setSize, size
-
Constructor Details
-
CustomCachePolicy
public CustomCachePolicy()
-
-
Method Details
-
evictionStrategy
Sets the custom eviction strategy to be used by the space, When using a Custom Cache Policy this property must be set. -
setEvictionStrategy
Sets the custom eviction strategy to be used by the space, When using a Custom Cache Policy this property must be set. -
toProps
- Specified by:
toPropsin interfaceCachePolicy- Overrides:
toPropsin classLruCachePolicy
-