public class EvictionAttributesFactoryBean extends Object implements FactoryBean<com.gemstone.gemfire.cache.EvictionAttributes>, InitializingBean
FactoryBean,
InitializingBean,
EvictionAttributes,
ObjectSizer| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_LRU_MAXIMUM_ENTRIES |
protected static int |
DEFAULT_MEMORY_MAXIMUM_SIZE |
| Constructor and Description |
|---|
EvictionAttributesFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
com.gemstone.gemfire.cache.EvictionAction |
getAction()
Gets the action performed on the Region when Eviction occurs.
|
com.gemstone.gemfire.cache.EvictionAttributes |
getObject() |
com.gemstone.gemfire.cache.util.ObjectSizer |
getObjectSizer()
Gets the GemFire ObjectSizer used in determining object sizes of data stored in the Cache.
|
Class<?> |
getObjectType() |
Integer |
getThreshold()
Get the threshold used by the LRU algorithm in ENTRY_COUNT and MEMORY_SIZE eviction policy.
|
EvictionPolicyType |
getType()
Gets the eviction policy and algorithm used by the Region.
|
boolean |
isSingleton() |
void |
setAction(com.gemstone.gemfire.cache.EvictionAction action)
Sets the action to perform on the Region when Eviction occurs.
|
void |
setObjectSizer(com.gemstone.gemfire.cache.util.ObjectSizer objectSizer)
Sets the GemFire ObjectSizer used in determining object sizes of data stored in the Cache.
|
void |
setThreshold(Integer threshold)
Set the threshold used by the LRU algorithm in ENTRY_COUNT and MEMORY_SIZE eviction policy.
|
void |
setType(EvictionPolicyType type)
Sets the type of eviction policy and algorithm (e.g.
|
protected static final int DEFAULT_LRU_MAXIMUM_ENTRIES
protected static final int DEFAULT_MEMORY_MAXIMUM_SIZE
public void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanpublic com.gemstone.gemfire.cache.EvictionAttributes getObject()
getObject in interface FactoryBean<com.gemstone.gemfire.cache.EvictionAttributes>public Class<?> getObjectType()
getObjectType in interface FactoryBean<com.gemstone.gemfire.cache.EvictionAttributes>public boolean isSingleton()
isSingleton in interface FactoryBean<com.gemstone.gemfire.cache.EvictionAttributes>public void setAction(com.gemstone.gemfire.cache.EvictionAction action)
action - the specified EvictionAction taken on the Region.EvictionActionpublic com.gemstone.gemfire.cache.EvictionAction getAction()
EvictionActionpublic void setObjectSizer(com.gemstone.gemfire.cache.util.ObjectSizer objectSizer)
objectSizer - the ObjectSizer used in sizing object data stored in the Cache.ObjectSizerpublic com.gemstone.gemfire.cache.util.ObjectSizer getObjectSizer()
ObjectSizerpublic void setThreshold(Integer threshold)
threshold - an Integer value specifying the threshold used by the LRU algorithm
when enforcing the eviction policy.public Integer getThreshold()
public void setType(EvictionPolicyType type)
type - the type of eviction policy/algorithm to implement on the Region.EvictionPolicyTypepublic EvictionPolicyType getType()
EvictionPolicyType