Class NoCachingConfiguration
java.lang.Object
org.mule.jms.commons.api.connection.caching.NoCachingConfiguration
- All Implemented Interfaces:
CachingStrategy
Implementation of
CachingConfiguration that disables session caching This CachingConfiguration is the
recommended only if an external CachingConnectionFactory is already being parameterized or if this extension is being
used in the context of a Java EE web or EJB application.- Since:
- 4,0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanappliesTo(jakarta.jms.ConnectionFactory target) We only wrap connection factories that: - aren't instances of XAConnectionFactory - haven't already been wrapped - aren't already a caching factory
-
Constructor Details
-
NoCachingConfiguration
public NoCachingConfiguration()
-
-
Method Details
-
appliesTo
public boolean appliesTo(jakarta.jms.ConnectionFactory target) We only wrap connection factories that: - aren't instances of XAConnectionFactory - haven't already been wrapped - aren't already a caching factory- Specified by:
appliesToin interfaceCachingStrategy- Parameters:
target- theConnectionFactorythat will be wrapped using thisCachingConfiguration- Returns:
trueif thetargetfactory can be wrapped in a caching connection factory
-
strategyConfiguration
- Specified by:
strategyConfigurationin interfaceCachingStrategy- Returns:
- the
CachingConfigurationrequired for executing thisCachingStrategyif one is required.
-