Class ConnectionFactoryUnwrapper

java.lang.Object
org.springframework.boot.jms.ConnectionFactoryUnwrapper

public final class ConnectionFactoryUnwrapper extends Object
Unwrap a ConnectionFactory that may have been wrapped to perform caching or pooling.
Since:
3.4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    static jakarta.jms.ConnectionFactory
    unwrap(jakarta.jms.ConnectionFactory connectionFactory)
    Return the native ConnectionFactory by unwrapping it from a cache or pool connection factory.
    static jakarta.jms.ConnectionFactory
    unwrapCaching(jakarta.jms.ConnectionFactory connectionFactory)
    Return the native ConnectionFactory by unwrapping ot from a CachingConnectionFactory.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • unwrapCaching

      public static jakarta.jms.ConnectionFactory unwrapCaching(jakarta.jms.ConnectionFactory connectionFactory)
      Return the native ConnectionFactory by unwrapping ot from a CachingConnectionFactory. Return the given ConnectionFactory if no CachingConnectionFactory wrapper has been detected.
      Parameters:
      connectionFactory - a connection factory
      Returns:
      the native connection factory that a CachingConnectionFactory wraps, if any
      Since:
      3.4.1
    • unwrap

      public static jakarta.jms.ConnectionFactory unwrap(jakarta.jms.ConnectionFactory connectionFactory)
      Return the native ConnectionFactory by unwrapping it from a cache or pool connection factory. Return the given ConnectionFactory if no caching wrapper has been detected.
      Parameters:
      connectionFactory - a connection factory
      Returns:
      the native connection factory that it wraps, if any