Class PostgresqlConnectionFactoryProvider
java.lang.Object
io.r2dbc.postgresql.PostgresqlConnectionFactoryProvider
- All Implemented Interfaces:
ConnectionFactoryProvider
public final class PostgresqlConnectionFactoryProvider
extends Object
implements ConnectionFactoryProvider
An implementation of
ConnectionFactoryProvider for creating PostgresqlConnectionFactorys.-
Field Summary
FieldsModifier and TypeFieldDescriptionApplication name.Auto-detect extensions.Compatibility query mode for cursored query execution.Schema search path.static final Option<io.r2dbc.postgresql.util.LogLevel> Error Response Log Level.static final Option<Collection<Extension>> Extensions to register.static final StringFailover driver protocol.Fetch Size.Force binary transfer.Host status recheck time.static final StringLegacy driver option value.Load balance hosts.Lock timeout.static final Option<reactor.netty.resources.LoopResources> EventLoopResources.static final Option<io.r2dbc.postgresql.util.LogLevel> Notice Response Log Level.Connection options which are applied once after the connection has been created.static final StringDriver option value.Configure whethercodecsshould prefer attached data buffers.Determine the number of queries that are cached in each connection.Schema search path (alias for "currentSchema").Unix domain socket.Path for the certificate file.static final Option<Function<io.netty.handler.ssl.SslContextBuilder, io.netty.handler.ssl.SslContextBuilder>> CustomizerFunctionforSslContextBuilder.static final Option<HostnameVerifier> Class name of hostname verifier.File path for the key file.static final Option<io.r2dbc.postgresql.client.SSLMode> Ssl mode.static final Option<io.r2dbc.postgresql.client.SSLMode> Ssl mode alias (JDBC style).static final Option<io.r2dbc.postgresql.client.SSLNegotiation> Ssl negotiation mechanism.static final Option<io.r2dbc.postgresql.client.SSLNegotiation> Ssl negotiation mechanism alias.SSL key passwordFile path of the SSL root certificate.Configure whether to use SNI on SSL connections.Statement timeout.static final Option<MultiHostConnectionStrategy.TargetServerType> Target server type.Enable TCP KeepAlive.Enable TCP NoDelay.Configure the session time zone. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder(ConnectionFactoryOptions connectionFactoryOptions) Returns a newPostgresqlConnectionConfiguration.Builderconfigured with the givenConnectionFactoryOptions.create(ConnectionFactoryOptions connectionFactoryOptions) booleansupports(ConnectionFactoryOptions connectionFactoryOptions)
-
Field Details
-
APPLICATION_NAME
-
AUTODETECT_EXTENSIONS
-
COMPATIBILITY_MODE
-
ERROR_RESPONSE_LOG_LEVEL
Error Response Log Level. -
EXTENSIONS
-
FETCH_SIZE
-
FORCE_BINARY
-
HOST_RECHECK_TIME
-
LOAD_BALANCE_HOSTS
-
LOCK_WAIT_TIMEOUT
-
LOOP_RESOURCES
EventLoopResources.- Since:
- 0.8.5
-
NOTICE_LOG_LEVEL
Notice Response Log Level. -
OPTIONS
-
POSTGRESQL_DRIVER
-
LEGACY_POSTGRESQL_DRIVER
-
FAILOVER_PROTOCOL
-
PREFER_ATTACHED_BUFFERS
Configure whethercodecsshould prefer attached data buffers. The default isfalse, meaning that codecs will copy data from the input buffer into abyte[]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 asJson) must be consumed to release attached buffers to avoid memory leaks.- Since:
- 0.8.5
-
PREPARED_STATEMENT_CACHE_QUERIES
-
SCHEMA
-
CURRENT_SCHEMA
-
SOCKET
-
SSL_CONTEXT_BUILDER_CUSTOMIZER
-
SSL_CERT
-
SSL_HOSTNAME_VERIFIER
Class name of hostname verifier. Defaults toDefaultHostnameVerifier. -
SSL_KEY
-
SSL_MODE
Ssl mode. Default: disabled -
SSL_MODE_ALIAS
Ssl mode alias (JDBC style). Default: disabled- Since:
- 0.9.2
-
SSL_NEGOTIATION
Ssl negotiation mechanism. Default: Postgres- Since:
- 1.1
-
SSL_NEGOTIATION_ALIAS
Ssl negotiation mechanism alias. Default: Postgres- Since:
- 1.1
-
SSL_PASSWORD
-
SSL_ROOT_CERT
-
SSL_SNI
-
STATEMENT_TIMEOUT
-
TARGET_SERVER_TYPE
Target server type. Allowed values: any, primary, secondary, preferSecondary.- Since:
- 1.0
-
TCP_KEEPALIVE
-
TCP_NODELAY
-
TIME_ZONE
-
-
Constructor Details
-
PostgresqlConnectionFactoryProvider
public PostgresqlConnectionFactoryProvider()
-
-
Method Details
-
builder
public static PostgresqlConnectionConfiguration.Builder builder(ConnectionFactoryOptions connectionFactoryOptions) Returns a newPostgresqlConnectionConfiguration.Builderconfigured with the givenConnectionFactoryOptions.- Parameters:
connectionFactoryOptions-ConnectionFactoryOptionsused to initialize thePostgresqlConnectionConfiguration.Builder.- Returns:
- a
PostgresqlConnectionConfiguration.Builder - Since:
- 0.9
-
create
- Specified by:
createin interfaceConnectionFactoryProvider
-
getDriver
- Specified by:
getDriverin interfaceConnectionFactoryProvider
-
supports
- Specified by:
supportsin interfaceConnectionFactoryProvider
-