Class EvictionConfiguration
java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.config.annotation.EvictionConfiguration
- 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.ApplicationContextAware
,org.springframework.context.EnvironmentAware
@Configuration
public class EvictionConfiguration
extends AbstractAnnotationConfigSupport
implements org.springframework.context.ApplicationContextAware, org.springframework.context.annotation.ImportAware
The
EvictionConfiguration
class is a Spring @Configuration
annotated class to enable
Eviction policy configuration on cache Regions
.- Since:
- 1.9.0
- See Also:
-
EvictionAttributes
Region
ObjectSizer
BeanPostProcessor
ApplicationContext
ApplicationContextAware
Bean
Configuration
ImportAware
PeerRegionFactoryBean
ResolvableRegionFactoryBean
ClientRegionFactoryBean
AbstractAnnotationConfigSupport
EvictionActionType
EvictionAttributesFactoryBean
EvictionPolicyType
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
EvictionConfiguration.ComposableEvictionPolicyConfigurer
is aEvictionConfiguration.EvictionPolicyConfigurer
implementation that composes multipleEvictionConfiguration.EvictionPolicyConfigurer
objects into a composition using the Composite Software Design Pattern making the composition appear as a singleEvictionConfiguration.EvictionPolicyConfigurer
.protected static interface
EvictionConfiguration.EvictionPolicyConfigurer
configures the Eviction policy of an Apache GeodeRegion
.protected static class
Nested classes/interfaces inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
AbstractAnnotationConfigSupport.TypeResolver<T>
-
Field Summary
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
evictionContextRefreshedListener
(org.springframework.context.event.ContextRefreshedEvent event) protected Class<? extends Annotation>
Returns theAnnotation
type
that enables and configures Eviction.Returns a reference to the configuredEvictionConfiguration.EvictionPolicyConfigurer
used to configure the Eviction policy of aRegion
.protected static boolean
isRegionFactoryBean
(Object bean) Determines whether the Spring bean is an instance ofEvictingRegionFactoryBean
.void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) Sets a reference to the SpringApplicationContext
.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
-
Constructor Details
-
EvictionConfiguration
public EvictionConfiguration()
-
-
Method Details
-
getAnnotationType
Returns theAnnotation
type
that enables and configures Eviction.- Specified by:
getAnnotationType
in classAbstractAnnotationConfigSupport
- Returns:
- the
Annotation
type
to enable and configure Eviction. - See Also:
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException Sets a reference to the SpringApplicationContext
.- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Parameters:
applicationContext
- SpringApplicationContext
in use.- Throws:
org.springframework.beans.BeansException
- if an error occurs while storing a reference to the SpringApplicationContext
.- See Also:
-
ApplicationContextAware.setApplicationContext(ApplicationContext)
ApplicationContext
-
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 ofEvictingRegionFactoryBean
.- Parameters:
bean
- Spring bean to evaluate.- Returns:
- a boolean value indicating whether the Spring bean is an instance of
EvictingRegionFactoryBean
. - See Also:
-
getEvictionPolicyConfigurer
Returns a reference to the configuredEvictionConfiguration.EvictionPolicyConfigurer
used to configure the Eviction policy of aRegion
.- Returns:
- a reference to the configured
EvictionConfiguration.EvictionPolicyConfigurer
. - See Also:
-
evictionBeanPostProcessor
@Bean public org.springframework.beans.factory.config.BeanPostProcessor evictionBeanPostProcessor() -
evictionContextRefreshedListener
@EventListener(org.springframework.context.event.ContextRefreshedEvent.class) public void evictionContextRefreshedListener(@NonNull org.springframework.context.event.ContextRefreshedEvent event)
-