@Configuration public class EvictionConfiguration extends AbstractAnnotationConfigSupport implements ApplicationContextAware, ImportAware
EvictionConfiguration
class is a Spring @Configuration
annotated class to enable
Eviction policy configuration on cache Regions
.EvictionAttributes
,
Region
,
ObjectSizer
,
BeanPostProcessor
,
ApplicationContext
,
ApplicationContextAware
,
Bean
,
Configuration
,
ImportAware
,
PeerRegionFactoryBean
,
ResolvableRegionFactoryBean
,
ClientRegionFactoryBean
,
AbstractAnnotationConfigSupport
,
EvictionActionType
,
EvictionAttributesFactoryBean
,
EvictionPolicyType
Modifier and Type | Class and Description |
---|---|
protected static class |
EvictionConfiguration.ComposableEvictionPolicyConfigurer
EvictionConfiguration.ComposableEvictionPolicyConfigurer is a EvictionConfiguration.EvictionPolicyConfigurer implementation that composes
multiple EvictionConfiguration.EvictionPolicyConfigurer objects into a composition using the Composite Software Design Pattern
making the composition appear as a single EvictionConfiguration.EvictionPolicyConfigurer . |
protected static interface |
EvictionConfiguration.EvictionPolicyConfigurer
EvictionConfiguration.EvictionPolicyConfigurer configures the Eviction policy of an Apache Geode Region . |
protected static class |
EvictionConfiguration.EvictionPolicyMetaData |
AbstractAnnotationConfigSupport.TypeResolver<T>
CURRENT_THREAD_CONTEXT_CLASS_LOADER, INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX
Constructor and Description |
---|
EvictionConfiguration() |
Modifier and Type | Method and Description |
---|---|
BeanPostProcessor |
evictionBeanPostProcessor() |
void |
evictionContextRefreshedListener(ContextRefreshedEvent event) |
protected Class<? extends Annotation> |
getAnnotationType()
Returns the
Annotation type that enables and configures Eviction. |
protected EvictionConfiguration.EvictionPolicyConfigurer |
getEvictionPolicyConfigurer()
Returns a reference to the configured
EvictionConfiguration.EvictionPolicyConfigurer used to configure the Eviction policy
of a Region . |
protected static boolean |
isRegionFactoryBean(Object bean)
Determines whether the Spring bean is an instance of
EvictingRegionFactoryBean . |
void |
setApplicationContext(ApplicationContext applicationContext)
Sets a reference to the Spring
ApplicationContext . |
void |
setImportMetadata(AnnotationMetadata importMetadata) |
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, redisServiceProperty, 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
@NonNull protected Class<? extends Annotation> getAnnotationType()
Annotation
type
that enables and configures Eviction.getAnnotationType
in class AbstractAnnotationConfigSupport
Annotation
type
to enable and configure Eviction.Annotation
,
Class
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
ApplicationContext
.setApplicationContext
in interface ApplicationContextAware
applicationContext
- Spring ApplicationContext
in use.BeansException
- if an error occurs while storing a reference to the Spring ApplicationContext
.ApplicationContextAware.setApplicationContext(ApplicationContext)
,
ApplicationContext
public void setImportMetadata(@NonNull AnnotationMetadata importMetadata)
setImportMetadata
in interface ImportAware
protected static boolean isRegionFactoryBean(Object bean)
EvictingRegionFactoryBean
.bean
- Spring bean to evaluate.EvictingRegionFactoryBean
.EvictingRegionFactoryBean
,
ClientRegionFactoryBean
,
PeerRegionFactoryBean
protected EvictionConfiguration.EvictionPolicyConfigurer getEvictionPolicyConfigurer()
EvictionConfiguration.EvictionPolicyConfigurer
used to configure the Eviction policy
of a Region
.EvictionConfiguration.EvictionPolicyConfigurer
.EvictionConfiguration.EvictionPolicyConfigurer
@Bean public BeanPostProcessor evictionBeanPostProcessor()
@EventListener(value=org.springframework.context.event.ContextRefreshedEvent.class) public void evictionContextRefreshedListener(@NonNull ContextRefreshedEvent event)
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.