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 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. expiration timeout and action) necessary to configure aRegions's
expiration 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 ExpirationActionType
protected static final EnableExpiration.ExpirationType[]
protected static final int
Fields 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 TypeMethodDescriptionvoid
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
(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 theAnnotation
type
that enables and configures Expiration.- Specified by:
getAnnotationType
in classAbstractAnnotationConfigSupport
- Returns:
- the
Annotation
type
that enables and configures Expiration. - See Also:
-
setImportMetadata
- Specified by:
setImportMetadata
in 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)
-