public final class PostgresqlConnectionFactoryProvider extends Object implements ConnectionFactoryProvider
ConnectionFactoryProvider
for creating PostgresqlConnectionFactory
s.Modifier and Type | Field and Description |
---|---|
static Option<String> |
APPLICATION_NAME
Application name.
|
static Option<Boolean> |
AUTODETECT_EXTENSIONS
Auto-detect extensions.
|
static Option<String> |
CURRENT_SCHEMA
Schema search path.
|
static Option<Integer> |
FETCH_SIZE
Fetch Size.
|
static Option<Boolean> |
FORCE_BINARY
Force binary transfer.
|
static String |
LEGACY_POSTGRESQL_DRIVER
Legacy driver option value.
|
static 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 Option<Integer> |
PREPARED_STATEMENT_CACHE_QUERIES
Determine the number of queries that are cached in each connection.
|
static Option<String> |
SCHEMA
Schema search path (alias for "currentSchema").
|
static Option<String> |
SOCKET
Unix domain socket.
|
static Option<String> |
SSL_CERT
Full path for the certificate file.
|
static Option<Function<io.netty.handler.ssl.SslContextBuilder,io.netty.handler.ssl.SslContextBuilder>> |
SSL_CONTEXT_BUILDER_CUSTOMIZER
Customizer
Function for SslContextBuilder . |
static Option<HostnameVerifier> |
SSL_HOSTNAME_VERIFIER
Class name of hostname verifier.
|
static Option<String> |
SSL_KEY
Full path for the key file.
|
static Option<io.r2dbc.postgresql.client.SSLMode> |
SSL_MODE
Ssl mode.
|
static Option<String> |
SSL_PASSWORD
SSL key password
|
static Option<String> |
SSL_ROOT_CERT
File name of the SSL root certificate.
|
static Option<Boolean> |
TCP_KEEPALIVE
Enable TCP KeepAlive.
|
static Option<Boolean> |
TCP_NODELAY
Enable TCP NoDelay.
|
Constructor and Description |
---|
PostgresqlConnectionFactoryProvider() |
Modifier and Type | Method and Description |
---|---|
static PostgresqlConnectionConfiguration.Builder |
builder(ConnectionFactoryOptions connectionFactoryOptions)
Returns a new
PostgresqlConnectionConfiguration.Builder configured with the given ConnectionFactoryOptions . |
PostgresqlConnectionFactory |
create(ConnectionFactoryOptions connectionFactoryOptions) |
String |
getDriver() |
boolean |
supports(ConnectionFactoryOptions connectionFactoryOptions) |
public static final Option<Boolean> AUTODETECT_EXTENSIONS
public static final String POSTGRESQL_DRIVER
public static final String LEGACY_POSTGRESQL_DRIVER
public static final Option<Function<io.netty.handler.ssl.SslContextBuilder,io.netty.handler.ssl.SslContextBuilder>> SSL_CONTEXT_BUILDER_CUSTOMIZER
Function
for SslContextBuilder
.public static final Option<HostnameVerifier> SSL_HOSTNAME_VERIFIER
DefaultHostnameVerifier
.public static final Option<io.r2dbc.postgresql.client.SSLMode> SSL_MODE
public static final Option<String> SSL_ROOT_CERT
public static final 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(ConnectionFactoryOptions connectionFactoryOptions)
PostgresqlConnectionConfiguration.Builder
configured with the given ConnectionFactoryOptions
.connectionFactoryOptions
- ConnectionFactoryOptions
used to initialize the PostgresqlConnectionConfiguration.Builder
.PostgresqlConnectionConfiguration.Builder
public PostgresqlConnectionFactory create(ConnectionFactoryOptions connectionFactoryOptions)
create
in interface ConnectionFactoryProvider
public String getDriver()
getDriver
in interface ConnectionFactoryProvider
public boolean supports(ConnectionFactoryOptions connectionFactoryOptions)
supports
in interface ConnectionFactoryProvider
Copyright © 2020. All rights reserved.