public class DelegatingConnectionFactory extends Object implements ConnectionFactory, Wrapped<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(ConnectionFactory targetConnectionFactory)
Create a new DelegatingConnectionFactory.
|
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<? extends Connection> |
create() |
ConnectionFactoryMetadata |
getMetadata() |
ConnectionFactory |
getTargetConnectionFactory()
Return the target ConnectionFactory that this ConnectionFactory delegates to.
|
ConnectionFactory |
unwrap() |
public DelegatingConnectionFactory(ConnectionFactory targetConnectionFactory)
targetConnectionFactory - the target ConnectionFactorypublic ConnectionFactory getTargetConnectionFactory()
public reactor.core.publisher.Mono<? extends Connection> create()
create in interface ConnectionFactorypublic ConnectionFactoryMetadata getMetadata()
getMetadata in interface ConnectionFactorypublic ConnectionFactory unwrap()
unwrap in interface Wrapped<ConnectionFactory>