Class GemFireAsLastResourceConnectionClosingAspect
java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractGemFireAsLastResourceAspectSupport
org.springframework.data.gemfire.config.annotation.support.GemFireAsLastResourceConnectionClosingAspect
- All Implemented Interfaces:
org.springframework.core.Ordered
public class GemFireAsLastResourceConnectionClosingAspect
extends AbstractGemFireAsLastResourceAspectSupport
The
GemFireAsLastResourceConnectionClosingAspect
class is a AbstractGemFireAsLastResourceAspectSupport
implementation responsible for closing the GemFire Connection obtained from the GemFire JCA ResourceAdapter
deployed in a managed environment when using GemFire as the Last Resource in a CMT/JTA Transaction
initiated from Spring's Transaction infrastructure.- Since:
- 2.0.0
- See Also:
-
Aspect
After
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
Closes the GemFire JCA ResourceAdapter Connection after the Spring CMT/JTA Transaction completes.protected Integer
Returns the default order used by this AOP Aspect in the chain of Aspects configured in Spring's Transaction Management.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
-
GemFireAsLastResourceConnectionClosingAspect
public GemFireAsLastResourceConnectionClosingAspect()
-
-
Method Details
-
doGemFireConnectionClose
public void doGemFireConnectionClose()Closes the GemFire JCA ResourceAdapter Connection after the Spring CMT/JTA Transaction completes. -
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.
-