类 OptionsCapableConnectionFactory
java.lang.Object
org.springframework.boot.r2dbc.OptionsCapableConnectionFactory
- 所有已实现的接口:
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.- 从以下版本开始:
- 2.5.0
- 作者:
- Andy Wilkinson
-
构造器概要
构造器构造器说明OptionsCapableConnectionFactory
(io.r2dbc.spi.ConnectionFactoryOptions options, io.r2dbc.spi.ConnectionFactory delegate) Create a newOptionsCapableConnectionFactory
that will provide access to the givenoptions
that were used to build the givendelegate
ConnectionFactory
. -
方法概要
修饰符和类型方法说明org.reactivestreams.Publisher
<? extends io.r2dbc.spi.Connection> create()
io.r2dbc.spi.ConnectionFactoryMetadata
io.r2dbc.spi.ConnectionFactoryOptions
io.r2dbc.spi.ConnectionFactory
unwrap()
unwrapFrom
(io.r2dbc.spi.ConnectionFactory connectionFactory) Returns, if possible, anOptionsCapableConnectionFactory
by unwrapping the givenconnectionFactory
as necessary.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 io.r2dbc.spi.Wrapped
unwrap
-
构造器详细资料
-
OptionsCapableConnectionFactory
public OptionsCapableConnectionFactory(io.r2dbc.spi.ConnectionFactoryOptions options, io.r2dbc.spi.ConnectionFactory delegate) Create a newOptionsCapableConnectionFactory
that will provide access to the givenoptions
that were used to build the givendelegate
ConnectionFactory
.- 参数:
options
- the options from which the connection factory was builtdelegate
- the delegate connection factory that was built with options
-
-
方法详细资料
-
getOptions
public io.r2dbc.spi.ConnectionFactoryOptions getOptions() -
create
public org.reactivestreams.Publisher<? extends io.r2dbc.spi.Connection> create()- 指定者:
create
在接口中io.r2dbc.spi.ConnectionFactory
-
getMetadata
public io.r2dbc.spi.ConnectionFactoryMetadata getMetadata()- 指定者:
getMetadata
在接口中io.r2dbc.spi.ConnectionFactory
-
unwrap
public io.r2dbc.spi.ConnectionFactory unwrap()- 指定者:
unwrap
在接口中io.r2dbc.spi.Wrapped<io.r2dbc.spi.ConnectionFactory>
-
unwrapFrom
public static OptionsCapableConnectionFactory unwrapFrom(io.r2dbc.spi.ConnectionFactory connectionFactory) Returns, if possible, anOptionsCapableConnectionFactory
by unwrapping the givenconnectionFactory
as necessary. If the givenconnectionFactory
does not wrap anOptionsCapableConnectionFactory
and is not itself anOptionsCapableConnectionFactory
,null
is returned.- 参数:
connectionFactory
- the connection factory to unwrap- 返回:
- the
OptionsCapableConnectionFactory
ornull
- 从以下版本开始:
- 2.5.1
-