@Configuration @EnableTransactionManagement public class GemfireCacheTransactionsConfiguration extends AbstractAnnotationConfigSupport implements ImportAware
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.GemFireCache
,
TransactionListener
,
TransactionWriter
,
ApplicationEventPublisher
,
Bean
,
Configuration
,
ImportAware
,
AnnotationAttributes
,
AnnotatedTypeMetadata
,
CacheFactoryBean
,
ClientCacheConfigurer
,
PeerCacheConfigurer
,
AbstractAnnotationConfigSupport
,
GemfireTransactionManager
,
ComposableTransactionWriter
,
TransactionListenerAdapter
,
EnableTransactionManagement
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 |
---|
GemfireCacheTransactionsConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected Class<? extends Annotation> |
getAnnotationType()
Returns the cache application
Annotation type pertaining to this configuration. |
protected void |
registerGemFireCacheTransactionEventHandlers(CacheFactoryBean cacheFactoryBean,
TransactionListenerAdapter transactionListener) |
ClientCacheConfigurer |
registerTransactionListenerAdapterClientCacheConfigurer(ApplicationEventPublisher applicationEventPublisher) |
PeerCacheConfigurer |
registerTransactionListenerAdapterPeerCacheConfigurer(ApplicationEventPublisher applicationEventPublisher) |
void |
setImportMetadata(AnnotationMetadata annotationMetadata) |
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. |
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
public GemfireCacheTransactionsConfiguration()
protected Class<? extends Annotation> getAnnotationType()
AbstractAnnotationConfigSupport
Annotation
type pertaining to this configuration.getAnnotationType
in class AbstractAnnotationConfigSupport
Annotation
type used by this application.public void setImportMetadata(AnnotationMetadata annotationMetadata)
setImportMetadata
in interface ImportAware
@Bean public GemfireTransactionManager transactionManager(org.apache.geode.cache.GemFireCache gemfireCache)
GemfireTransactionManager
as the transactionManager
in Spring's Transaction Management infrastructure to manage local, GemFire/Geode cache transactions.gemfireCache
- reference to the GemFireCache
.GemfireTransactionManager
initialized with the given GemFireCache
.GemfireTransactionManager
,
GemFireCache
@Bean @Order(value=2147483647) public ClientCacheConfigurer registerTransactionListenerAdapterClientCacheConfigurer(ApplicationEventPublisher applicationEventPublisher)
@Bean @Order(value=2147483647) public PeerCacheConfigurer registerTransactionListenerAdapterPeerCacheConfigurer(ApplicationEventPublisher applicationEventPublisher)
protected void registerGemFireCacheTransactionEventHandlers(CacheFactoryBean cacheFactoryBean, TransactionListenerAdapter transactionListener)
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.