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 Type
    Method
    Description
    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
     
  • 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 - the ConnectionFactory that will be wrapped using this CachingConfiguration
      Returns:
      true if the target factory can be wrapped in a caching connection factory
    • strategyConfiguration

      Optional<CachingConfiguration> strategyConfiguration()
      Returns:
      the CachingConfiguration required for executing this CachingStrategy if one is required.