public final class PostgresqlConnectionFactoryProvider extends Object implements io.r2dbc.spi.ConnectionFactoryProvider
ConnectionFactoryProvider
for creating PostgresqlConnectionFactory
s.Modifier and Type | Field and Description |
---|---|
static io.r2dbc.spi.Option<String> |
APPLICATION_NAME
Application name.
|
static io.r2dbc.spi.Option<Boolean> |
AUTODETECT_EXTENSIONS
Auto-detect extensions.
|
static io.r2dbc.spi.Option<String> |
CURRENT_SCHEMA
Schema search path.
|
static io.r2dbc.spi.Option<Integer> |
FETCH_SIZE
Fetch Size.
|
static io.r2dbc.spi.Option<Boolean> |
FORCE_BINARY
Force binary transfer.
|
static String |
LEGACY_POSTGRESQL_DRIVER
Legacy driver option value.
|
static io.r2dbc.spi.Option<Map<String,String>> |
OPTIONS
Connection options which are applied once after the connection has been created.
|
static String |
POSTGRESQL_DRIVER
Driver option value.
|
static io.r2dbc.spi.Option<Integer> |
PREPARED_STATEMENT_CACHE_QUERIES
Determine the number of queries that are cached in each connection.
|
static io.r2dbc.spi.Option<String> |
SCHEMA
Schema search path (alias for "currentSchema").
|
static io.r2dbc.spi.Option<String> |
SOCKET
Unix domain socket.
|
static io.r2dbc.spi.Option<String> |
SSL_CERT
Full path for the certificate file.
|
static io.r2dbc.spi.Option<Function<io.netty.handler.ssl.SslContextBuilder,io.netty.handler.ssl.SslContextBuilder>> |
SSL_CONTEXT_BUILDER_CUSTOMIZER
Customizer
Function for SslContextBuilder . |
static io.r2dbc.spi.Option<HostnameVerifier> |
SSL_HOSTNAME_VERIFIER
Class name of hostname verifier.
|
static io.r2dbc.spi.Option<String> |
SSL_KEY
Full path for the key file.
|
static io.r2dbc.spi.Option<io.r2dbc.postgresql.client.SSLMode> |
SSL_MODE
Ssl mode.
|
static io.r2dbc.spi.Option<String> |
SSL_PASSWORD
SSL key password
|
static io.r2dbc.spi.Option<String> |
SSL_ROOT_CERT
File name of the SSL root certificate.
|
Constructor and Description |
---|
PostgresqlConnectionFactoryProvider() |
Modifier and Type | Method and Description |
---|---|
static PostgresqlConnectionConfiguration.Builder |
builder(io.r2dbc.spi.ConnectionFactoryOptions connectionFactoryOptions)
Returns a new
PostgresqlConnectionConfiguration.Builder configured with the given ConnectionFactoryOptions . |
PostgresqlConnectionFactory |
create(io.r2dbc.spi.ConnectionFactoryOptions connectionFactoryOptions) |
String |
getDriver() |
boolean |
supports(io.r2dbc.spi.ConnectionFactoryOptions connectionFactoryOptions) |
public static final io.r2dbc.spi.Option<String> APPLICATION_NAME
public static final io.r2dbc.spi.Option<Boolean> AUTODETECT_EXTENSIONS
public static final io.r2dbc.spi.Option<Integer> FETCH_SIZE
public static final io.r2dbc.spi.Option<Boolean> FORCE_BINARY
public static final String POSTGRESQL_DRIVER
public static final String LEGACY_POSTGRESQL_DRIVER
public static final io.r2dbc.spi.Option<String> SCHEMA
public static final io.r2dbc.spi.Option<String> CURRENT_SCHEMA
public static final io.r2dbc.spi.Option<String> SOCKET
public static final io.r2dbc.spi.Option<Function<io.netty.handler.ssl.SslContextBuilder,io.netty.handler.ssl.SslContextBuilder>> SSL_CONTEXT_BUILDER_CUSTOMIZER
Function
for SslContextBuilder
.public static final io.r2dbc.spi.Option<String> SSL_CERT
public static final io.r2dbc.spi.Option<HostnameVerifier> SSL_HOSTNAME_VERIFIER
DefaultHostnameVerifier
.public static final io.r2dbc.spi.Option<String> SSL_KEY
public static final io.r2dbc.spi.Option<io.r2dbc.postgresql.client.SSLMode> SSL_MODE
public static final io.r2dbc.spi.Option<String> SSL_PASSWORD
public static final io.r2dbc.spi.Option<String> SSL_ROOT_CERT
public static final io.r2dbc.spi.Option<Integer> PREPARED_STATEMENT_CACHE_QUERIES
-1
, meaning there's no limit. The value of 0
disables the cache. Any other value specifies the cache size.public static PostgresqlConnectionConfiguration.Builder builder(io.r2dbc.spi.ConnectionFactoryOptions connectionFactoryOptions)
PostgresqlConnectionConfiguration.Builder
configured with the given ConnectionFactoryOptions
.connectionFactoryOptions
- ConnectionFactoryOptions
used to initialize the PostgresqlConnectionConfiguration.Builder
.PostgresqlConnectionConfiguration.Builder
public PostgresqlConnectionFactory create(io.r2dbc.spi.ConnectionFactoryOptions connectionFactoryOptions)
create
in interface io.r2dbc.spi.ConnectionFactoryProvider
public String getDriver()
getDriver
in interface io.r2dbc.spi.ConnectionFactoryProvider
public boolean supports(io.r2dbc.spi.ConnectionFactoryOptions connectionFactoryOptions)
supports
in interface io.r2dbc.spi.ConnectionFactoryProvider
Copyright © 2020. All rights reserved.