unwrapFrom

open fun unwrapFrom(connectionFactory: ConnectionFactory): OptionsCapableConnectionFactory

Returns, if possible, an OptionsCapableConnectionFactory by unwrapping the given connectionFactory as necessary. If the given connectionFactory does not wrap an OptionsCapableConnectionFactory and is not itself an OptionsCapableConnectionFactory, null is returned.

Return

the OptionsCapableConnectionFactory or null

Since

2.5.1

Parameters

connectionFactory

the connection factory to unwrap