Class ExpirationConfiguration
java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.config.annotation.ExpirationConfiguration
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,ImportAware,EnvironmentAware
@Configuration
public class ExpirationConfiguration
extends AbstractAnnotationConfigSupport
implements ImportAware
ExpirationConfiguration is a Spring Configuration class used to configure expiration policies
for GemFire/Geode Regions.- Since:
- 1.9.0
- Author:
- John Blum
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classExpirationConfiguration.ComposableExpirationPolicyConfigureris aExpirationConfiguration.ExpirationPolicyConfigurerimplementation that additionally implements the Composition Software Design Pattern to treat a collection ofExpirationConfiguration.ExpirationPolicyConfigurerobjects as a single instace of theExpirationConfiguration.ExpirationPolicyConfigurer.protected static interfaceInterface defining a contract for implementations that configure aRegion'sexpiration policy.protected static classExpirationConfiguration.ExpirationPolicyMetaDatais aExpirationConfiguration.ExpirationPolicyConfigurerimplementation that encapsulates the expiration configuration meta-data (e.g. expiration timeout and action) necessary to configure aRegions'sexpiration policy and behavior.Nested classes/interfaces inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
AbstractAnnotationConfigSupport.TypeResolver<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final ExpirationActionTypeprotected static final EnableExpiration.ExpirationType[]protected static final intFields inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected Class<? extends Annotation>Returns theAnnotationtypethat enables and configures Expiration.protected static booleanisRegionFactoryBean(Object bean) Determines whether the Spring bean is an instance ofExpiringRegionFactoryBeanvoidsetImportMetadata(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, 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
-
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 theAnnotationtypethat enables and configures Expiration.- Specified by:
getAnnotationTypein classAbstractAnnotationConfigSupport- Returns:
- the
Annotationtypethat enables and configures Expiration. - See Also:
-
setImportMetadata
- Specified by:
setImportMetadatain interfaceImportAware
-
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
-
expirationContextRefreshedListener
@EventListener(org.springframework.context.event.ContextRefreshedEvent.class) public void expirationContextRefreshedListener(@NonNull ContextRefreshedEvent event)
-