@Configuration public class ExpirationConfiguration extends Object implements ImportAware
ExpirationConfiguration
is a Spring Configuration
class used to configure expiration policies
for GemFire/Geode Regions
.Configuration
,
ImportAware
,
EnableExpiration
,
ExpirationAttributes
,
Region
Modifier and Type | Class and Description |
---|---|
protected static class |
ExpirationConfiguration.ComposableExpirationPolicyConfigurer
ExpirationConfiguration.ComposableExpirationPolicyConfigurer is a ExpirationConfiguration.ExpirationPolicyConfigurer implementation
that additionally implements the Composition Software Design Pattern to treat a collection of
ExpirationConfiguration.ExpirationPolicyConfigurer objects as a single instace of the ExpirationConfiguration.ExpirationPolicyConfigurer . |
protected static interface |
ExpirationConfiguration.ExpirationPolicyConfigurer
Interface defining a contract for implementations that configure a
Region's expiration policy. |
protected static class |
ExpirationConfiguration.ExpirationPolicyMetaData
ExpirationConfiguration.ExpirationPolicyMetaData is a ExpirationConfiguration.ExpirationPolicyConfigurer implementation that encapsulates
the expiration configuration meta-data (e.g. expiration timeout and action) necessary to configure
a Regions's expiration policy and behavior. |
Modifier and Type | Field and Description |
---|---|
protected static ExpirationActionType |
DEFAULT_ACTION |
protected static EnableExpiration.ExpirationType[] |
DEFAULT_EXPIRATION_TYPES |
protected static int |
DEFAULT_TIMEOUT |
Constructor and Description |
---|
ExpirationConfiguration() |
Modifier and Type | Method and Description |
---|---|
BeanPostProcessor |
expirationBeanPostProcessor() |
protected Class<? extends Annotation> |
getAnnotationType()
Returns the
Annotation type that enables and configures Expiration. |
protected String |
getAnnotationTypeName()
Returns the name of the
Annotation type that enables and configures Expiration. |
protected String |
getAnnotationTypeSimpleName()
Returns the simple name of the
Annotation type that enables and configures Expiration. |
protected ExpirationConfiguration.ExpirationPolicyConfigurer |
getExpirationPolicyConfigurer() |
protected boolean |
isRegion(Object bean)
Determines whether the given bean is a
Region . |
void |
setImportMetadata(AnnotationMetadata importMetadata) |
protected static final int DEFAULT_TIMEOUT
protected static final ExpirationActionType DEFAULT_ACTION
protected static final EnableExpiration.ExpirationType[] DEFAULT_EXPIRATION_TYPES
protected Class<? extends Annotation> getAnnotationType()
Annotation
type
that enables and configures Expiration.Annotation
type
that enables and configures Expiration.Annotation
,
Class
protected String getAnnotationTypeName()
Annotation
type that enables and configures Expiration.Annotation
type that enables and configures Expiration.Class.getName()
,
getAnnotationType()
protected String getAnnotationTypeSimpleName()
Annotation
type that enables and configures Expiration.Annotation
type that enables and configures Expiration.Class.getSimpleName()
,
getAnnotationType()
public void setImportMetadata(AnnotationMetadata importMetadata)
setImportMetadata
in interface ImportAware
protected boolean isRegion(Object bean)
Region
.bean
- Object
to evaluate.Region
.Region
protected ExpirationConfiguration.ExpirationPolicyConfigurer getExpirationPolicyConfigurer()
@Bean public BeanPostProcessor expirationBeanPostProcessor()
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.