Class ExpirationConfiguration
java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.config.annotation.ExpirationConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.context.annotation.ImportAware
,org.springframework.context.EnvironmentAware
@Configuration
public class ExpirationConfiguration
extends AbstractAnnotationConfigSupport
implements org.springframework.context.annotation.ImportAware
ExpirationConfiguration
is a Spring Configuration
class used to configure expiration policies
for GemFire/Geode Regions
.- Since:
- 1.9.0
- See Also:
-
Configuration
ImportAware
EnableExpiration
ExpirationAttributes
Region
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
ExpirationConfiguration.ComposableExpirationPolicyConfigurer
is aExpirationConfiguration.ExpirationPolicyConfigurer
implementation that additionally implements the Composition Software Design Pattern to treat a collection ofExpirationConfiguration.ExpirationPolicyConfigurer
objects as a single instace of theExpirationConfiguration.ExpirationPolicyConfigurer
.protected static interface
Interface defining a contract for implementations that configure aRegion's
expiration policy.protected static class
ExpirationConfiguration.ExpirationPolicyMetaData
is aExpirationConfiguration.ExpirationPolicyConfigurer
implementation that encapsulates the expiration configuration meta-data (e.g.Nested classes/interfaces inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
AbstractAnnotationConfigSupport.TypeResolver<T>
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final ExpirationActionType
protected static final EnableExpiration.ExpirationType[]
protected static final int
Fields inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
CURRENT_THREAD_CONTEXT_CLASS_LOADER, INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.beans.factory.config.BeanPostProcessor
void
expirationContextRefreshedListener
(org.springframework.context.event.ContextRefreshedEvent event) protected Class<? extends Annotation>
Returns theAnnotation
type
that enables and configures Expiration.protected static boolean
isRegionFactoryBean
(Object bean) Determines whether the Spring bean is an instance ofExpiringRegionFactoryBean
void
setImportMetadata
(org.springframework.core.type.AnnotationMetadata importMetadata) Methods inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
arrayOfPropertyNamesFor, arrayOfPropertyNamesFor, asArrayProperty, cacheClientProperty, cacheCompressionProperty, cacheOffHeapProperty, cachePeerProperty, cacheProperty, cacheServerProperty, clusterProperty, diskStoreProperty, entitiesProperty, gatewayReceiverProperty, gatewaySenderProperty, getAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getAnnotationTypeName, getAnnotationTypeSimpleName, getBeanClassLoader, getBeanFactory, getEnvironment, getEvaluationContext, getLogger, hasValue, hasValue, hasValue, httpServiceProperty, isAnnotationPresent, isAnnotationPresent, isNotInfrastructureBean, isNotInfrastructureBean, isNotInfrastructureClass, isNotInfrastructureRole, isUserLevelMethod, locatorProperty, logDebug, logDebug, logError, logError, loggingProperty, logInfo, logInfo, logWarning, logWarning, managementProperty, managerProperty, memcachedServiceProperty, namedCacheServerProperty, namedDiskStoreProperty, namedGatewaySenderProperty, namedPoolProperty, newEvaluationContext, newLogger, pdxProperty, poolProperty, propertyName, register, register, requireProperty, resolveAnnotation, resolveBeanClass, resolveBeanClass, resolveBeanClass, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassName, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, safeResolveType, securityProperty, serviceProperty, setBeanClassLoader, setBeanFactory, setEnvironment, sslProperty, statsProperty
-
Field Details
-
DEFAULT_TIMEOUT
protected static final int DEFAULT_TIMEOUT- See Also:
-
DEFAULT_ACTION
-
DEFAULT_EXPIRATION_TYPES
-
-
Constructor Details
-
ExpirationConfiguration
public ExpirationConfiguration()
-
-
Method Details
-
getAnnotationType
Returns theAnnotation
type
that enables and configures Expiration.- Specified by:
getAnnotationType
in classAbstractAnnotationConfigSupport
- Returns:
- the
Annotation
type
that enables and configures Expiration. - See Also:
-
setImportMetadata
public void setImportMetadata(@NonNull org.springframework.core.type.AnnotationMetadata importMetadata) - Specified by:
setImportMetadata
in interfaceorg.springframework.context.annotation.ImportAware
-
isRegionFactoryBean
Determines whether the Spring bean is an instance ofExpiringRegionFactoryBean
- Parameters:
bean
- Spring bean to evaluate.- Returns:
- a boolean value indicating whether the Spring bean is an instance of
ExpiringRegionFactoryBean
. - See Also:
-
getExpirationPolicyConfigurer
-
expirationBeanPostProcessor
@Bean public org.springframework.beans.factory.config.BeanPostProcessor expirationBeanPostProcessor() -
expirationContextRefreshedListener
@EventListener(org.springframework.context.event.ContextRefreshedEvent.class) public void expirationContextRefreshedListener(@NonNull org.springframework.context.event.ContextRefreshedEvent event)
-