Interface CachingStrategy
- All Known Implementing Classes:
DefaultCachingStrategy,NoCachingConfiguration
public interface CachingStrategy
Defines the strategy to be used for caching of
Sessions and Connections- Since:
- 1.0
-
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
-
Method Details
-
appliesTo
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- Parameters:
target- theConnectionFactorythat will be wrapped using thisCachingConfiguration- Returns:
trueif thetargetfactory can be wrapped in a caching connection factory
-
strategyConfiguration
Optional<CachingConfiguration> strategyConfiguration()- Returns:
- the
CachingConfigurationrequired for executing thisCachingStrategyif one is required.
-