Class GemFireAsLastResourceConnectionAcquiringAspect
java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractGemFireAsLastResourceAspectSupport
org.springframework.data.gemfire.config.annotation.support.GemFireAsLastResourceConnectionAcquiringAspect
- All Implemented Interfaces:
org.springframework.core.Ordered
public class GemFireAsLastResourceConnectionAcquiringAspect
extends AbstractGemFireAsLastResourceAspectSupport
The
GemFireAsLastResourceConnectionAcquiringAspect
class is a AbstractGemFireAsLastResourceAspectSupport
implementation responsible for acquiring a GemFire Connection from GemFire's JCA ResourceAdapter,
GFConnectionFactory
after a CMT/JTA Transaction is began, which is initiated by
Spring's Transaction infrastructure.- Since:
- 2.0.0
- See Also:
-
GFConnectionFactory
Aspect
Before
AbstractGemFireAsLastResourceAspectSupport
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractGemFireAsLastResourceAspectSupport
AbstractGemFireAsLastResourceAspectSupport.GemFireConnectionHolder
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractGemFireAsLastResourceAspectSupport
DEFAULT_GEMFIRE_JCA_RESOURCE_ADAPTER_JNDI_NAME, DEFAULT_THROW_ON_ERROR, NO_OP_LOGGER
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Acquires (opens) a GemFire JCA ResourceAdapter Connection after the Spring CMT/JTA Transaction begins.protected Integer
Returns the default order used by this AOP Aspect in the chain of Aspects configured in Spring's Transaction Management.org.apache.geode.ra.GFConnectionFactory
Returns a reference to the configuredGFConnectionFactory
instance.Methods inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractGemFireAsLastResourceAspectSupport
atTransactionalMethod, atTransactionalType, format, getContext, getGemFireCache, getGemFireJcaResourceAdapterJndiName, getInitialContextFactory, getLogger, getOrder, getProviderUrl, isThrowOnError, logDebugInfo, logError, logInfo, logTraceInfo, logTraceInfo, logWarning, newInitialContext, newLogger, resolveContext, resolveEnvironment, resolveGemFireCache, resolveGemFireJcaResourceAdapterJndiName, setOrder, withThrowOnError
-
Constructor Details
-
GemFireAsLastResourceConnectionAcquiringAspect
public GemFireAsLastResourceConnectionAcquiringAspect()
-
-
Method Details
-
doGemFireConnectionFactoryGetConnection
public void doGemFireConnectionFactoryGetConnection()Acquires (opens) a GemFire JCA ResourceAdapter Connection after the Spring CMT/JTA Transaction begins. -
getDefaultOrder
Returns the default order used by this AOP Aspect in the chain of Aspects configured in Spring's Transaction Management.- Overrides:
getDefaultOrder
in classAbstractGemFireAsLastResourceAspectSupport
- Returns:
- an int value specifying the default order used by this AOP Aspect in the chain of Aspects configured in Spring's Transaction Management.
-
getGemFireConnectionFactory
public org.apache.geode.ra.GFConnectionFactory getGemFireConnectionFactory()Returns a reference to the configuredGFConnectionFactory
instance.- Returns:
- a reference to the configured
GFConnectionFactory
instance; may be null. - See Also:
-
GFConnectionFactory
-