@Alias(value="no-caching") public class NoCachingConfiguration extends Object implements CachingStrategy
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.| Constructor and Description |
|---|
NoCachingConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesTo(javax.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
|
Optional<CachingConfiguration> |
strategyConfiguration() |
public boolean appliesTo(javax.jms.ConnectionFactory target)
appliesTo in interface CachingStrategytarget - the ConnectionFactory that will be wrapped using this CachingConfigurationtrue if the target factory can be wrapped in a caching connection factorypublic Optional<CachingConfiguration> strategyConfiguration()
strategyConfiguration in interface CachingStrategyCachingConfiguration required for executing this CachingStrategy if one is required.Copyright © 2023. All rights reserved.