@Configuration public class ExpirationConfiguration extends AbstractAnnotationConfigSupport implements ImportAware
ExpirationConfiguration
is a Spring Configuration
class used to configure expiration policies
for Pivotal GemFire/Apache 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. |
AbstractAnnotationConfigSupport.TypeResolver<T>
Modifier and Type | Field and Description |
---|---|
protected static ExpirationActionType |
DEFAULT_ACTION |
protected static EnableExpiration.ExpirationType[] |
DEFAULT_EXPIRATION_TYPES |
protected static int |
DEFAULT_TIMEOUT |
INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX
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 ExpirationConfiguration.ExpirationPolicyConfigurer |
getExpirationPolicyConfigurer() |
protected static boolean |
isRegionFactoryBean(Object bean)
Determines whether the Spring bean is an instance of
ExpiringRegionFactoryBean |
void |
setImportMetadata(AnnotationMetadata importMetadata) |
arrayOfPropertyNamesFor, arrayOfPropertyNamesFor, asArrayProperty, cacheClientProperty, cacheCompressionProperty, cacheOffHeapProperty, cachePeerProperty, cacheProperty, cacheServerProperty, clusterProperty, diskStoreProperty, entitiesProperty, gatewayReceiverProperty, gatewaySenderProperty, getAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getAnnotationTypeName, getAnnotationTypeSimpleName, getBeanClassLoader, getBeanFactory, getEnvironment, getEvaluationContext, getLog, hasValue, hasValue, hasValue, httpServiceProperty, isAnnotationPresent, isAnnotationPresent, isNotInfrastructureBean, isNotInfrastructureBean, isNotInfrastructureClass, isNotInfrastructureClass, isNotInfrastructureRole, isUserLevelMethod, locatorProperty, logDebug, logDebug, logError, logError, loggingProperty, logInfo, logInfo, logWarning, logWarning, managementProperty, managerProperty, memcachedServiceProperty, namedCacheServerProperty, namedDiskStoreProperty, namedGatewaySenderProperty, namedPoolProperty, newEvaluationContext, newLog, pdxProperty, poolProperty, propertyName, redisServiceProperty, register, register, requireProperty, resolveAnnotation, resolveBeanClass, resolveBeanClass, resolveBeanClass, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassName, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, safeResolveType, securityProperty, serviceProperty, setBeanClassLoader, setBeanFactory, setEnvironment, sslProperty, statsProperty
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.getAnnotationType
in class AbstractAnnotationConfigSupport
Annotation
type
that enables and configures Expiration.Annotation
,
Class
public void setImportMetadata(AnnotationMetadata importMetadata)
setImportMetadata
in interface ImportAware
protected static boolean isRegionFactoryBean(Object bean)
ExpiringRegionFactoryBean
bean
- Spring bean to evaluate.ExpiringRegionFactoryBean
.ExpiringRegionFactoryBean
,
ClientRegionFactoryBean
,
PeerRegionFactoryBean
protected ExpirationConfiguration.ExpirationPolicyConfigurer getExpirationPolicyConfigurer()
@Bean public BeanPostProcessor expirationBeanPostProcessor()
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.