public class ExpirationAttributesFactoryBean extends Object implements FactoryBean<org.apache.geode.cache.ExpirationAttributes>, InitializingBean
FactoryBean
,
InitializingBean
,
ExpirationAttributes
Modifier and Type | Field and Description |
---|---|
protected static org.apache.geode.cache.ExpirationAction |
DEFAULT_EXPIRATION_ACTION |
protected static int |
DEFAULT_TIMEOUT |
OBJECT_TYPE_ATTRIBUTE
Constructor and Description |
---|
ExpirationAttributesFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Initializes the GemFire ExpirationAttributes produced by this factory.
|
org.apache.geode.cache.ExpirationAction |
getAction()
Gets the action to perform when a Region or an Entry expires.
|
org.apache.geode.cache.ExpirationAttributes |
getObject() |
Class<?> |
getObjectType() |
int |
getTimeout()
Gets the number of seconds before a Region or an Entry expires.
|
boolean |
isSingleton() |
void |
setAction(org.apache.geode.cache.ExpirationAction action)
Sets the action to perform when a Region or an Entry expire.
|
void |
setTimeout(Integer timeout)
Sets the number of seconds before a Region or an Entry expires.
|
protected static final int DEFAULT_TIMEOUT
protected static final org.apache.geode.cache.ExpirationAction DEFAULT_EXPIRATION_ACTION
public org.apache.geode.cache.ExpirationAttributes getObject() throws Exception
getObject
in interface FactoryBean<org.apache.geode.cache.ExpirationAttributes>
Exception
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<org.apache.geode.cache.ExpirationAttributes>
public boolean isSingleton()
isSingleton
in interface FactoryBean<org.apache.geode.cache.ExpirationAttributes>
public void setAction(org.apache.geode.cache.ExpirationAction action)
action
- the type of action to perform on expirationExpirationAction
public org.apache.geode.cache.ExpirationAction getAction()
ExpirationActionType
,
ExpirationAttributes.getAction()
public void setTimeout(Integer timeout)
timeout
- the number of seconds before a Region or an Entry expires.public int getTimeout()
ExpirationAttributes.getTimeout()
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
- if the construction of the ExpirationAttributes was not successful.getAction()
,
getTimeout()
,
ExpirationActionType.getExpirationAction()
,
ExpirationAttributes
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.