Class ConnectionOptions (2.18.0)

public class ConnectionOptions

Inheritance

java.lang.Object > ConnectionOptions

Static Fields

AUTOCOMMIT_PROPERTY_NAME

public static final String AUTOCOMMIT_PROPERTY_NAME
Field Value
Type Description
String

AUTO_PARTITION_MODE_PROPERTY_NAME

public static final String AUTO_PARTITION_MODE_PROPERTY_NAME
Field Value
Type Description
String

CHANNEL_PROVIDER_PROPERTY_NAME

public static final String CHANNEL_PROVIDER_PROPERTY_NAME
Field Value
Type Description
String

CREDENTIALS_PROPERTY_NAME

public static final String CREDENTIALS_PROPERTY_NAME
Field Value
Type Description
String

CREDENTIALS_PROVIDER_PROPERTY_NAME

public static final String CREDENTIALS_PROVIDER_PROPERTY_NAME
Field Value
Type Description
String

DATABASE_ROLE_PROPERTY_NAME

public static final String DATABASE_ROLE_PROPERTY_NAME
Field Value
Type Description
String

DATA_BOOST_ENABLED_PROPERTY_NAME

public static final String DATA_BOOST_ENABLED_PROPERTY_NAME
Field Value
Type Description
String

DDL_IN_TRANSACTION_MODE_PROPERTY_NAME

public static final String DDL_IN_TRANSACTION_MODE_PROPERTY_NAME
Field Value
Type Description
String

DELAY_TRANSACTION_START_UNTIL_FIRST_WRITE_NAME

public static final String DELAY_TRANSACTION_START_UNTIL_FIRST_WRITE_NAME
Field Value
Type Description
String

ENABLE_CHANNEL_PROVIDER_SYSTEM_PROPERTY

public static final String ENABLE_CHANNEL_PROVIDER_SYSTEM_PROPERTY
Field Value
Type Description
String

ENABLE_CREDENTIALS_PROVIDER_SYSTEM_PROPERTY

public static final String ENABLE_CREDENTIALS_PROVIDER_SYSTEM_PROPERTY
Field Value
Type Description
String

ENABLE_ENCODED_CREDENTIALS_SYSTEM_PROPERTY

public static final String ENABLE_ENCODED_CREDENTIALS_SYSTEM_PROPERTY
Field Value
Type Description
String

ENCODED_CREDENTIALS_PROPERTY_NAME

public static final String ENCODED_CREDENTIALS_PROPERTY_NAME
Field Value
Type Description
String

ENDPOINT_PROPERTY_NAME

public static final String ENDPOINT_PROPERTY_NAME
Field Value
Type Description
String

LENIENT_PROPERTY_NAME

public static final String LENIENT_PROPERTY_NAME
Field Value
Type Description
String

MAX_PARTITIONED_PARALLELISM_PROPERTY_NAME

public static final String MAX_PARTITIONED_PARALLELISM_PROPERTY_NAME
Field Value
Type Description
String

MAX_PARTITIONS_PROPERTY_NAME

public static final String MAX_PARTITIONS_PROPERTY_NAME
Field Value
Type Description
String

MAX_SESSIONS_PROPERTY_NAME

public static final String MAX_SESSIONS_PROPERTY_NAME
Field Value
Type Description
String

MIN_SESSIONS_PROPERTY_NAME

public static final String MIN_SESSIONS_PROPERTY_NAME
Field Value
Type Description
String

NUM_CHANNELS_PROPERTY_NAME

public static final String NUM_CHANNELS_PROPERTY_NAME
Field Value
Type Description
String

OAUTH_TOKEN_PROPERTY_NAME

public static final String OAUTH_TOKEN_PROPERTY_NAME
Field Value
Type Description
String

READONLY_PROPERTY_NAME

public static final String READONLY_PROPERTY_NAME
Field Value
Type Description
String

RETRY_ABORTS_INTERNALLY_PROPERTY_NAME

public static final String RETRY_ABORTS_INTERNALLY_PROPERTY_NAME
Field Value
Type Description
String

ROUTE_TO_LEADER_PROPERTY_NAME

public static final String ROUTE_TO_LEADER_PROPERTY_NAME
Field Value
Type Description
String

RPC_PRIORITY_NAME

public static final String RPC_PRIORITY_NAME
Field Value
Type Description
String

TRACK_CONNECTION_LEAKS_PROPERTY_NAME

public static final String TRACK_CONNECTION_LEAKS_PROPERTY_NAME
Field Value
Type Description
String

TRACK_SESSION_LEAKS_PROPERTY_NAME

public static final String TRACK_SESSION_LEAKS_PROPERTY_NAME
Field Value
Type Description
String

USE_VIRTUAL_GRPC_TRANSPORT_THREADS_PROPERTY_NAME

public static final String USE_VIRTUAL_GRPC_TRANSPORT_THREADS_PROPERTY_NAME
Field Value
Type Description
String

USE_VIRTUAL_THREADS_PROPERTY_NAME

public static final String USE_VIRTUAL_THREADS_PROPERTY_NAME
Field Value
Type Description
String

VALID_PROPERTIES

public static final Set<ConnectionOptions.ConnectionProperty> VALID_PROPERTIES
Field Value
Type Description
Set<ConnectionProperty>

Static Methods

closeSpanner()

public static void closeSpanner()

getDefaultProjectId(Credentials arg0)

public static String getDefaultProjectId(Credentials arg0)
Parameter
Name Description
arg0 com.google.auth.Credentials
Returns
Type Description
String

newBuilder()

public static ConnectionOptions.Builder newBuilder()
Returns
Type Description
Builder

Methods

getChannelProvider()

public TransportChannelProvider getChannelProvider()
Returns
Type Description
TransportChannelProvider

getConnection()

public Connection getConnection()
Returns
Type Description
Connection

getCredentials()

public Credentials getCredentials()
Returns
Type Description
com.google.auth.Credentials

getCredentialsUrl()

public String getCredentialsUrl()
Returns
Type Description
String

getDatabaseId()

public DatabaseId getDatabaseId()
Returns
Type Description
DatabaseId

getDatabaseName()

public String getDatabaseName()
Returns
Type Description
String

getDatabaseRole()

public String getDatabaseRole()
Returns
Type Description
String

getDialect()

public Dialect getDialect()
Returns
Type Description
Dialect

getHost()

public String getHost()
Returns
Type Description
String

getInstanceId()

public String getInstanceId()
Returns
Type Description
String

getMaxCommitDelay()

public Duration getMaxCommitDelay()
Returns
Type Description
Duration

getMaxSessions()

public Integer getMaxSessions()
Returns
Type Description
Integer

getMinSessions()

public Integer getMinSessions()
Returns
Type Description
Integer

getNumChannels()

public Integer getNumChannels()
Returns
Type Description
Integer

getProjectId()

public String getProjectId()
Returns
Type Description
String

getSessionPoolOptions()

public SessionPoolOptions getSessionPoolOptions()
Returns
Type Description
SessionPoolOptions

getUri()

public String getUri()
Returns
Type Description
String

getWarnings()

public String getWarnings()
Returns
Type Description
String

isAutoConfigEmulator()

public boolean isAutoConfigEmulator()
Returns
Type Description
boolean

isAutocommit()

public boolean isAutocommit()
Returns
Type Description
boolean

isReadOnly()

public boolean isReadOnly()
Returns
Type Description
boolean

isRetryAbortsInternally()

public boolean isRetryAbortsInternally()
Returns
Type Description
boolean

isReturnCommitStats()

public boolean isReturnCommitStats()
Returns
Type Description
boolean

isRouteToLeader()

public boolean isRouteToLeader()
Returns
Type Description
boolean

isUseVirtualGrpcTransportThreads()

public boolean isUseVirtualGrpcTransportThreads()
Returns
Type Description
boolean

isUseVirtualThreads()

public boolean isUseVirtualThreads()
Returns
Type Description
boolean

toString()

public String toString()
Returns
Type Description
String
Overrides