Class GemfireCacheTransactionsConfiguration

java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.transaction.config.GemfireCacheTransactionsConfiguration
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 @EnableTransactionManagement public class GemfireCacheTransactionsConfiguration extends AbstractAnnotationConfigSupport implements org.springframework.context.annotation.ImportAware
The GemfireCacheTransactionsConfiguration class is a Spring @Configuration class used to enable Spring's Transaction Management infrastructure along with SDG's GemfireTransactionManager to manage local, cache transactions for either Pivotal GemFire or Apache Geode.
Since:
2.0.0
See Also:
  • Constructor Details

    • GemfireCacheTransactionsConfiguration

      public GemfireCacheTransactionsConfiguration()
  • Method Details

    • getAnnotationType

      protected Class<? extends Annotation> getAnnotationType()
      Description copied from class: AbstractAnnotationConfigSupport
      Returns the cache application Annotation type pertaining to this configuration.
      Specified by:
      getAnnotationType in class AbstractAnnotationConfigSupport
      Returns:
      the cache application Annotation type used by this application.
    • setImportMetadata

      public void setImportMetadata(org.springframework.core.type.AnnotationMetadata annotationMetadata)
      Specified by:
      setImportMetadata in interface org.springframework.context.annotation.ImportAware
    • transactionManager

      @Bean public GemfireTransactionManager transactionManager(org.apache.geode.cache.GemFireCache gemfireCache)
      Declares and registers SDG's GemfireTransactionManager as the transactionManager in Spring's Transaction Management infrastructure to manage local, GemFire/Geode cache transactions.
      Parameters:
      gemfireCache - reference to the GemFireCache.
      Returns:
      a new instance of GemfireTransactionManager initialized with the given GemFireCache.
      See Also:
    • registerTransactionListenerAdapterClientCacheConfigurer

      @Bean @Order(2147483647) public ClientCacheConfigurer registerTransactionListenerAdapterClientCacheConfigurer(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
    • registerTransactionListenerAdapterPeerCacheConfigurer

      @Bean @Order(2147483647) public PeerCacheConfigurer registerTransactionListenerAdapterPeerCacheConfigurer(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
    • registerGemFireCacheTransactionEventHandlers

      protected void registerGemFireCacheTransactionEventHandlers(CacheFactoryBean cacheFactoryBean, TransactionListenerAdapter transactionListener)