类 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 ConnectionFactory
unwrap
(ConnectionFactory connectionFactory) Return the nativeConnectionFactory
by unwrapping it from a cache or pool connection factory.static ConnectionFactory
unwrapCaching
(ConnectionFactory connectionFactory) Return the nativeConnectionFactory
by unwrapping from aCachingConnectionFactory
.
-
方法详细资料
-
unwrapCaching
Return the nativeConnectionFactory
by unwrapping from aCachingConnectionFactory
. Return the givenConnectionFactory
if noCachingConnectionFactory
wrapper has been detected.- 参数:
connectionFactory
- a connection factory- 返回:
- the native connection factory that a
CachingConnectionFactory
wraps, if any - 从以下版本开始:
- 3.4.1
-
unwrap
Return the nativeConnectionFactory
by unwrapping it from a cache or pool connection factory. Return the givenConnectionFactory
if no caching wrapper has been detected.- 参数:
connectionFactory
- a connection factory- 返回:
- the native connection factory that it wraps, if any
-