@Deprecated public interface SmartConnectionFactory extends ConnectionFactory
io.r2dbc.spi.ConnectionFactoryinterface, to be implemented by special connection factories that return R2DBC Connections in an unwrapped fashion.
Classes using this interface can query whether or not the
Connection should be closed after an operation.
ConnectionFactoryUtils automatically perform such a check.
|Modifier and Type||Method and Description|
Should we close this
boolean shouldClose(Connection connection)
Connection, obtained from this
Code that uses Connections from a SmartConnectionFactory should always perform a check via this method before
Connectionshould be closed.
Copyright © 2018–2022 Pivotal Software, Inc.. All rights reserved.