GigaSpaces XAP 9.7.2 API

org.openspaces.core.space
Class CustomCachePolicy

java.lang.Object
  extended by org.openspaces.core.space.LruCachePolicy
      extended by org.openspaces.core.space.CustomCachePolicy
All Implemented Interfaces:
CachePolicy

public class CustomCachePolicy
extends LruCachePolicy

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
CustomCachePolicy()
           
 
Method Summary
 CustomCachePolicy evictionStrategy(SpaceEvictionStrategy evictionStrategy)
          Sets the custom eviction strategy to be used by the space, When using a Custom Cache Policy this property must be set.
 void 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.
 Properties toProps()
           
 
Methods inherited from class org.openspaces.core.space.LruCachePolicy
initialLoadPercentage, setInitialLoadPercentage, setSize, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomCachePolicy

public CustomCachePolicy()
Method Detail

evictionStrategy

public CustomCachePolicy evictionStrategy(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

public void 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

public Properties toProps()
Specified by:
toProps in interface CachePolicy
Overrides:
toProps in class LruCachePolicy

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.