public static final class ProxyConnectionFactory.Builder extends Object
ConnectionFactory.
 The returned ConnectionFactory is a proxy.
 Registered listeners and configuration will be used throughout the operations of the proxy.
 This class is not threadsafe.| Modifier and Type | Method and Description | 
|---|---|
| io.r2dbc.spi.ConnectionFactory | build()Build a proxy  ConnectionFactory. | 
| io.r2dbc.spi.ConnectionFactory | getConnectionFactory()Return the  ConnectionFactorypassed at creation. | 
| ProxyConfig | getProxyConfig()Return the  ProxyConfig. | 
| ProxyConnectionFactory.Builder | listener(ProxyExecutionListener listener)Register a  ProxyExecutionListener. | 
| ProxyConnectionFactory.Builder | onAfterMethod(Consumer<MethodExecutionInfo> consumer)Register a callback consumer for after method execution. | 
| ProxyConnectionFactory.Builder | onAfterQuery(Consumer<QueryExecutionInfo> consumer)Register a callback consumer for after query execution. | 
| ProxyConnectionFactory.Builder | onBeforeMethod(Consumer<MethodExecutionInfo> consumer)Register a callback consumer for before method execution | 
| ProxyConnectionFactory.Builder | onBeforeQuery(Consumer<QueryExecutionInfo> consumer)Register a callback consumer for before query execution. | 
| ProxyConnectionFactory.Builder | onEachQueryResult(Consumer<QueryExecutionInfo> consumer)Register a callback consumer for processing each query result. | 
| ProxyConnectionFactory.Builder | proxyConfig(ProxyConfig proxyConfig)Set a  ProxyConfigto use. | 
public io.r2dbc.spi.ConnectionFactory build()
ConnectionFactory.ConnectionFactorypublic ProxyConnectionFactory.Builder proxyConfig(ProxyConfig proxyConfig)
ProxyConfig to use.proxyConfig - proxy configIllegalArgumentException - if proxyConfig is nullpublic ProxyConnectionFactory.Builder onBeforeMethod(Consumer<MethodExecutionInfo> consumer)
consumer - a consumer for before method executionIllegalArgumentException - if consumer is nullpublic ProxyConnectionFactory.Builder onAfterMethod(Consumer<MethodExecutionInfo> consumer)
consumer - a consumer for after method executionIllegalArgumentException - if consumer is nullpublic ProxyConnectionFactory.Builder onBeforeQuery(Consumer<QueryExecutionInfo> consumer)
consumer - a consumer for before query executionIllegalArgumentException - if consumer is nullpublic ProxyConnectionFactory.Builder onAfterQuery(Consumer<QueryExecutionInfo> consumer)
consumer - a consumer for after query executionIllegalArgumentException - if consumer is nullpublic ProxyConnectionFactory.Builder onEachQueryResult(Consumer<QueryExecutionInfo> consumer)
consumer - a consumer for each query resultIllegalArgumentException - if consumer is nullpublic ProxyConnectionFactory.Builder listener(ProxyExecutionListener listener)
ProxyExecutionListener.listener - a listener to registerIllegalArgumentException - if listener is nullpublic io.r2dbc.spi.ConnectionFactory getConnectionFactory()
ConnectionFactory passed at creation.public ProxyConfig getProxyConfig()
ProxyConfig.Copyright © 2025. All rights reserved.