Class EvictionConfiguration
java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.config.annotation.EvictionConfiguration
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,ImportAware
,ApplicationContextAware
,EnvironmentAware
@Configuration
public class EvictionConfiguration
extends AbstractAnnotationConfigSupport
implements ApplicationContextAware, ImportAware
The
EvictionConfiguration
class is a Spring @Configuration
annotated class to enable
Eviction policy configuration on cache Regions
.- Since:
- 1.9.0
- Author:
- John Blum
- 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 TypeMethodDescriptionvoid
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
(ApplicationContext applicationContext) Sets a reference to the SpringApplicationContext
.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, 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
Sets a reference to the SpringApplicationContext
.- Specified by:
setApplicationContext
in interfaceApplicationContextAware
- Parameters:
applicationContext
- SpringApplicationContext
in use.- Throws:
BeansException
- if an error occurs while storing a reference to the SpringApplicationContext
.- See Also:
-
setImportMetadata
- Specified by:
setImportMetadata
in interfaceImportAware
-
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
-
evictionContextRefreshedListener
@EventListener(org.springframework.context.event.ContextRefreshedEvent.class) public void evictionContextRefreshedListener(@NonNull ContextRefreshedEvent event)
-