Class ExpirationConfiguration

java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.config.annotation.ExpirationConfiguration
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.EnvironmentAware

@Configuration public class ExpirationConfiguration extends AbstractAnnotationConfigSupport implements org.springframework.context.annotation.ImportAware
ExpirationConfiguration is a Spring Configuration class used to configure expiration policies for GemFire/Geode Regions.
Since:
1.9.0
See Also:
  • Field Details

  • Constructor Details

    • ExpirationConfiguration

      public ExpirationConfiguration()
  • Method Details

    • getAnnotationType

      @NonNull protected Class<? extends Annotation> getAnnotationType()
      Returns the Annotation type that enables and configures Expiration.
      Specified by:
      getAnnotationType in class AbstractAnnotationConfigSupport
      Returns:
      the Annotation type that enables and configures Expiration.
      See Also:
    • setImportMetadata

      public void setImportMetadata(@NonNull org.springframework.core.type.AnnotationMetadata importMetadata)
      Specified by:
      setImportMetadata in interface org.springframework.context.annotation.ImportAware
    • isRegionFactoryBean

      protected static boolean isRegionFactoryBean(Object bean)
      Determines whether the Spring bean is an instance of ExpiringRegionFactoryBean
      Parameters:
      bean - Spring bean to evaluate.
      Returns:
      a boolean value indicating whether the Spring bean is an instance of ExpiringRegionFactoryBean.
      See Also:
    • getExpirationPolicyConfigurer

      protected ExpirationConfiguration.ExpirationPolicyConfigurer getExpirationPolicyConfigurer()
    • expirationBeanPostProcessor

      @Bean public org.springframework.beans.factory.config.BeanPostProcessor expirationBeanPostProcessor()
    • expirationContextRefreshedListener

      @EventListener(org.springframework.context.event.ContextRefreshedEvent.class) public void expirationContextRefreshedListener(@NonNull org.springframework.context.event.ContextRefreshedEvent event)