类 ConnectionFactoryUnwrapper
java.lang.Object
org.springframework.boot.jms.ConnectionFactoryUnwrapper
Unwrap a
ConnectionFactory that may have been wrapped to perform caching or
pooling.- 从以下版本开始:
- 3.4.0
- 作者:
- Stephane Nicoll
-
方法概要
修饰符和类型方法说明static ConnectionFactoryunwrap(ConnectionFactory connectionFactory) Return the nativeConnectionFactoryby unwrapping it from a cache or pool connection factory.static ConnectionFactoryunwrapCaching(ConnectionFactory connectionFactory) Return the nativeConnectionFactoryby unwrapping from aCachingConnectionFactory.
-
方法详细资料
-
unwrapCaching
Return the nativeConnectionFactoryby unwrapping from aCachingConnectionFactory. Return the givenConnectionFactoryif noCachingConnectionFactorywrapper has been detected.- 参数:
connectionFactory- a connection factory- 返回:
- the native connection factory that a
CachingConnectionFactorywraps, if any - 从以下版本开始:
- 3.4.1
-
unwrap
Return the nativeConnectionFactoryby unwrapping it from a cache or pool connection factory. Return the givenConnectionFactoryif no caching wrapper has been detected.- 参数:
connectionFactory- a connection factory- 返回:
- the native connection factory that it wraps, if any
-