public class ExpirationAttributesFactoryBean extends Object implements FactoryBean<com.gemstone.gemfire.cache.ExpirationAttributes>, InitializingBean
FactoryBean
,
InitializingBean
,
ExpirationAttributes
Modifier and Type | Field and Description |
---|---|
protected static com.gemstone.gemfire.cache.ExpirationAction |
DEFAULT_EXPIRATION_ACTION |
protected static int |
DEFAULT_TIMEOUT |
Constructor and Description |
---|
ExpirationAttributesFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Initializes the GemFire ExpirationAttributes produced by this factory.
|
com.gemstone.gemfire.cache.ExpirationAction |
getAction()
Gets the action to perform when a Region or an Entry expires.
|
com.gemstone.gemfire.cache.ExpirationAttributes |
getObject() |
Class<?> |
getObjectType() |
int |
getTimeout()
Gets the number of seconds before a Region or an Entry expires.
|
boolean |
isSingleton() |
void |
setAction(com.gemstone.gemfire.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 com.gemstone.gemfire.cache.ExpirationAction DEFAULT_EXPIRATION_ACTION
public com.gemstone.gemfire.cache.ExpirationAttributes getObject() throws Exception
getObject
in interface FactoryBean<com.gemstone.gemfire.cache.ExpirationAttributes>
Exception
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<com.gemstone.gemfire.cache.ExpirationAttributes>
public boolean isSingleton()
isSingleton
in interface FactoryBean<com.gemstone.gemfire.cache.ExpirationAttributes>
public void setAction(com.gemstone.gemfire.cache.ExpirationAction action)
action
- the type of action to perform on expirationExpirationAction
public com.gemstone.gemfire.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–2017 Pivotal Software, Inc.. All rights reserved.