Package org.springframework.boot.r2dbc
Class OptionsCapableConnectionFactory
java.lang.Object
org.springframework.boot.r2dbc.OptionsCapableConnectionFactory
- All Implemented Interfaces:
- io.r2dbc.spi.ConnectionFactory,- io.r2dbc.spi.Wrapped<io.r2dbc.spi.ConnectionFactory>
public class OptionsCapableConnectionFactory
extends Object
implements io.r2dbc.spi.Wrapped<io.r2dbc.spi.ConnectionFactory>, io.r2dbc.spi.ConnectionFactory
ConnectionFactory capable of providing access to the
 ConnectionFactoryOptions from which it was built.- Since:
- 2.5.0
- 
Constructor SummaryConstructorsConstructorDescriptionOptionsCapableConnectionFactory(io.r2dbc.spi.ConnectionFactoryOptions options, io.r2dbc.spi.ConnectionFactory delegate) Create a newOptionsCapableConnectionFactorythat will provide access to the givenoptionsthat were used to build the givendelegateConnectionFactory.
- 
Method SummaryModifier and TypeMethodDescriptionorg.reactivestreams.Publisher<? extends io.r2dbc.spi.Connection>create()io.r2dbc.spi.ConnectionFactoryMetadataio.r2dbc.spi.ConnectionFactoryOptionsio.r2dbc.spi.ConnectionFactoryunwrap()unwrapFrom(io.r2dbc.spi.ConnectionFactory connectionFactory) Returns, if possible, anOptionsCapableConnectionFactoryby unwrapping the givenconnectionFactoryas necessary.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.r2dbc.spi.Wrappedunwrap
- 
Constructor Details- 
OptionsCapableConnectionFactorypublic OptionsCapableConnectionFactory(io.r2dbc.spi.ConnectionFactoryOptions options, io.r2dbc.spi.ConnectionFactory delegate) Create a newOptionsCapableConnectionFactorythat will provide access to the givenoptionsthat were used to build the givendelegateConnectionFactory.- Parameters:
- options- the options from which the connection factory was built
- delegate- the delegate connection factory that was built with options
 
 
- 
- 
Method Details- 
getOptionspublic io.r2dbc.spi.ConnectionFactoryOptions getOptions()
- 
createpublic org.reactivestreams.Publisher<? extends io.r2dbc.spi.Connection> create()- Specified by:
- createin interface- io.r2dbc.spi.ConnectionFactory
 
- 
getMetadatapublic io.r2dbc.spi.ConnectionFactoryMetadata getMetadata()- Specified by:
- getMetadatain interface- io.r2dbc.spi.ConnectionFactory
 
- 
unwrappublic io.r2dbc.spi.ConnectionFactory unwrap()- Specified by:
- unwrapin interface- io.r2dbc.spi.Wrapped<io.r2dbc.spi.ConnectionFactory>
 
- 
unwrapFrompublic static OptionsCapableConnectionFactory unwrapFrom(io.r2dbc.spi.ConnectionFactory connectionFactory) Returns, if possible, anOptionsCapableConnectionFactoryby unwrapping the givenconnectionFactoryas necessary. If the givenconnectionFactorydoes not wrap anOptionsCapableConnectionFactoryand is not itself anOptionsCapableConnectionFactory,nullis returned.- Parameters:
- connectionFactory- the connection factory to unwrap
- Returns:
- the OptionsCapableConnectionFactoryornull
- Since:
- 2.5.1
 
 
-