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<Boolean> |
COMPATIBILITY_MODE
Compatibility query mode for cursored query execution.
|
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<reactor.netty.resources.LoopResources> |
LOOP_RESOURCES
Event
LoopResources . |
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<Boolean> |
PREFER_ATTACHED_BUFFERS
Configure whether
codecs should prefer attached data buffers. |
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
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
File 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 path 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 Option<Boolean> COMPATIBILITY_MODE
public static final Option<reactor.netty.resources.LoopResources> LOOP_RESOURCES
LoopResources
.public static final Option<Map<String,String>> OPTIONS
public static final String POSTGRESQL_DRIVER
public static final String LEGACY_POSTGRESQL_DRIVER
public static final Option<Boolean> PREFER_ATTACHED_BUFFERS
codecs
should prefer attached data buffers. The default is false
, meaning that codecs will copy data from the input buffer into a byte[]
or similar data structure that is enabled for garbage collection. Using attached buffers is more efficient but comes with the requirement that decoded values (such as Json
) must
be consumed to release attached buffers to avoid memory leaks.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 final Option<Function<io.netty.handler.ssl.SslContextBuilder,io.netty.handler.ssl.SslContextBuilder>> SSL_CONTEXT_BUILDER_CUSTOMIZER
Function
for SslContextBuilder
.public static final Option<String> SSL_CERT
public static final Option<HostnameVerifier> SSL_HOSTNAME_VERIFIER
DefaultHostnameVerifier
.public static final Option<String> SSL_KEY
public static final Option<io.r2dbc.postgresql.client.SSLMode> SSL_MODE
public static final Option<String> SSL_ROOT_CERT
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 © 2021. All rights reserved.