Spring Data for VMware GemFire
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:
-
EvictionAttributesRegionObjectSizerBeanPostProcessorApplicationContextApplicationContextAwareBeanConfigurationImportAwarePeerRegionFactoryBeanResolvableRegionFactoryBeanClientRegionFactoryBeanAbstractAnnotationConfigSupportEvictionActionTypeEvictionAttributesFactoryBeanEvictionPolicyType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classEvictionConfiguration.ComposableEvictionPolicyConfigureris aEvictionConfiguration.EvictionPolicyConfigurerimplementation that composes multipleEvictionConfiguration.EvictionPolicyConfigurerobjects into a composition using the Composite Software Design Pattern making the composition appear as a singleEvictionConfiguration.EvictionPolicyConfigurer.protected static interfaceEvictionConfiguration.EvictionPolicyConfigurerconfigures the Eviction policy of an Apache GeodeRegion.protected static classNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.beans.factory.config.BeanPostProcessorvoidevictionContextRefreshedListener(org.springframework.context.event.ContextRefreshedEvent event) protected Class<? extends Annotation>Returns theAnnotationtypethat enables and configures Eviction.Returns a reference to the configuredEvictionConfiguration.EvictionPolicyConfigurerused to configure the Eviction policy of aRegion.protected static booleanisRegionFactoryBean(Object bean) Determines whether the Spring bean is an instance ofEvictingRegionFactoryBean.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Sets a reference to the SpringApplicationContext.voidsetImportMetadata(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 theAnnotationtypethat enables and configures Eviction.- Specified by:
getAnnotationTypein classAbstractAnnotationConfigSupport- Returns:
- the
Annotationtypeto 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:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Parameters:
applicationContext- SpringApplicationContextin 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:
setImportMetadatain 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.EvictionPolicyConfigurerused 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)
-