Class CloudSqlConnectionFactory (1.15.0)

public class CloudSqlConnectionFactory implements ConnectionFactory

ConnectionFactory for accessing Cloud SQL instances via R2DBC protocol.

Inheritance

java.lang.Object > CloudSqlConnectionFactory

Implements

io.r2dbc.spi.ConnectionFactory

Static Fields

SERVER_PROXY_PORT

public static final int SERVER_PROXY_PORT
Field Value
TypeDescription
int

Constructors

CloudSqlConnectionFactory(ConnectionConfig config, Supplier<ConnectionFactoryProvider> supplier, ConnectionFactoryOptions.Builder builder)

public CloudSqlConnectionFactory(ConnectionConfig config, Supplier<ConnectionFactoryProvider> supplier, ConnectionFactoryOptions.Builder builder)

Creates an instance of ConnectionFactory that pulls and sets host ip before delegating.

Parameters
NameDescription
configConnectionConfig
supplierSupplier<io.r2dbc.spi.ConnectionFactoryProvider>
builderio.r2dbc.spi.ConnectionFactoryOptions.Builder

Methods

create()

public Publisher<? extends Connection> create()
Returns
TypeDescription
org.reactivestreams.Publisher<? extends io.r2dbc.spi.Connection>

getMetadata()

public ConnectionFactoryMetadata getMetadata()
Returns
TypeDescription
io.r2dbc.spi.ConnectionFactoryMetadata