public class DelegatingConnectionFactory extends Object implements io.r2dbc.spi.ConnectionFactory, io.r2dbc.spi.Wrapped<io.r2dbc.spi.ConnectionFactory>
ConnectionFactory
implementation that delegates
all calls to a given target ConnectionFactory
.
This class is meant to be subclassed, with subclasses overriding
only those methods (such as create()
) that should not simply
delegate to the target ConnectionFactory
.
create()
Constructor and Description |
---|
DelegatingConnectionFactory(io.r2dbc.spi.ConnectionFactory targetConnectionFactory)
Create a new DelegatingConnectionFactory.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<? extends io.r2dbc.spi.Connection> |
create() |
io.r2dbc.spi.ConnectionFactoryMetadata |
getMetadata() |
io.r2dbc.spi.ConnectionFactory |
getTargetConnectionFactory()
Return the target ConnectionFactory that this ConnectionFactory delegates to.
|
io.r2dbc.spi.ConnectionFactory |
unwrap() |
public DelegatingConnectionFactory(io.r2dbc.spi.ConnectionFactory targetConnectionFactory)
targetConnectionFactory
- the target ConnectionFactorypublic io.r2dbc.spi.ConnectionFactory getTargetConnectionFactory()
public reactor.core.publisher.Mono<? extends io.r2dbc.spi.Connection> create()
create
in interface io.r2dbc.spi.ConnectionFactory
public io.r2dbc.spi.ConnectionFactoryMetadata getMetadata()
getMetadata
in interface io.r2dbc.spi.ConnectionFactory
public io.r2dbc.spi.ConnectionFactory unwrap()
unwrap
in interface io.r2dbc.spi.Wrapped<io.r2dbc.spi.ConnectionFactory>