public class EvictionAttributesFactoryBean extends Object implements FactoryBean<org.apache.geode.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 |
OBJECT_TYPE_ATTRIBUTE
Constructor and Description |
---|
EvictionAttributesFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
org.apache.geode.cache.EvictionAction |
getAction()
Gets the action performed on the Region when Eviction occurs.
|
org.apache.geode.cache.EvictionAttributes |
getObject() |
org.apache.geode.cache.util.ObjectSizer |
getObjectSizer()
Gets the Pivotal 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(org.apache.geode.cache.EvictionAction action)
Sets the action to perform on the Region when Eviction occurs.
|
void |
setObjectSizer(org.apache.geode.cache.util.ObjectSizer objectSizer)
Sets the Pivotal 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 InitializingBean
public org.apache.geode.cache.EvictionAttributes getObject()
getObject
in interface FactoryBean<org.apache.geode.cache.EvictionAttributes>
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<org.apache.geode.cache.EvictionAttributes>
public boolean isSingleton()
isSingleton
in interface FactoryBean<org.apache.geode.cache.EvictionAttributes>
public void setAction(org.apache.geode.cache.EvictionAction action)
action
- the specified EvictionAction taken on the Region.EvictionAction
public org.apache.geode.cache.EvictionAction getAction()
EvictionAction
public void setObjectSizer(org.apache.geode.cache.util.ObjectSizer objectSizer)
objectSizer
- the ObjectSizer used in sizing object data stored in the Cache.ObjectSizer
public org.apache.geode.cache.util.ObjectSizer getObjectSizer()
ObjectSizer
public 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.EvictionPolicyType
public EvictionPolicyType getType()
EvictionPolicyType
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.