Spring Data for VMware GemFire
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:
-
ConfigurationImportAwareEnableExpirationExpirationAttributesRegion
-
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.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
CURRENT_THREAD_CONTEXT_CLASS_LOADER, INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.beans.factory.config.BeanPostProcessorvoidexpirationContextRefreshedListener(org.springframework.context.event.ContextRefreshedEvent event) protected Class<? extends Annotation>Returns theAnnotationtypethat enables and configures Expiration.protected static booleanisRegionFactoryBean(Object bean) Determines whether the Spring bean is an instance ofExpiringRegionFactoryBeanvoidsetImportMetadata(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 theAnnotationtypethat enables and configures Expiration.- Specified by:
getAnnotationTypein classAbstractAnnotationConfigSupport- Returns:
- the
Annotationtypethat enables and configures Expiration. - See Also:
-
setImportMetadata
public void setImportMetadata(@NonNull org.springframework.core.type.AnnotationMetadata importMetadata) - Specified by:
setImportMetadatain 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)
-