@Alias(value="default-caching") public class DefaultCachingStrategy extends Object implements CachingStrategy, CachingConfiguration
CachingConfiguration that not only enables caching but also provides default values for all
the configurable parameters| Constructor and Description |
|---|
DefaultCachingStrategy() |
| 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
|
boolean |
equals(Object o) |
int |
getSessionCacheSize() |
int |
hashCode() |
boolean |
isConsumersCache() |
boolean |
isProducersCache() |
Optional<CachingConfiguration> |
strategyConfiguration() |
public int getSessionCacheSize()
getSessionCacheSize in interface CachingConfigurationsessionCacheSizepublic boolean isProducersCache()
isProducersCache in interface CachingConfigurationtrue if MessageProducers should be cachedpublic boolean isConsumersCache()
isConsumersCache in interface CachingConfigurationtrue if MessageConsumers should be cachedpublic 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.