Class ConnectionOptions (0.18.1)

public class ConnectionOptions

Inheritance

java.lang.Object > ConnectionOptions

Static Fields

AUTOCOMMIT_PROPERTY_NAME

public static final String AUTOCOMMIT_PROPERTY_NAME
Field Value
TypeDescription
String

CHANNEL_PROVIDER_PROPERTY_NAME

public static final String CHANNEL_PROVIDER_PROPERTY_NAME
Field Value
TypeDescription
String

CREDENTIALS_PROPERTY_NAME

public static final String CREDENTIALS_PROPERTY_NAME
Field Value
TypeDescription
String

CREDENTIALS_PROVIDER_PROPERTY_NAME

public static final String CREDENTIALS_PROVIDER_PROPERTY_NAME
Field Value
TypeDescription
String

DATABASE_ROLE_PROPERTY_NAME

public static final String DATABASE_ROLE_PROPERTY_NAME
Field Value
TypeDescription
String

ENCODED_CREDENTIALS_PROPERTY_NAME

public static final String ENCODED_CREDENTIALS_PROPERTY_NAME
Field Value
TypeDescription
String

LENIENT_PROPERTY_NAME

public static final String LENIENT_PROPERTY_NAME
Field Value
TypeDescription
String

MAX_SESSIONS_PROPERTY_NAME

public static final String MAX_SESSIONS_PROPERTY_NAME
Field Value
TypeDescription
String

MIN_SESSIONS_PROPERTY_NAME

public static final String MIN_SESSIONS_PROPERTY_NAME
Field Value
TypeDescription
String

NUM_CHANNELS_PROPERTY_NAME

public static final String NUM_CHANNELS_PROPERTY_NAME
Field Value
TypeDescription
String

OAUTH_TOKEN_PROPERTY_NAME

public static final String OAUTH_TOKEN_PROPERTY_NAME
Field Value
TypeDescription
String

READONLY_PROPERTY_NAME

public static final String READONLY_PROPERTY_NAME
Field Value
TypeDescription
String

RETRY_ABORTS_INTERNALLY_PROPERTY_NAME

public static final String RETRY_ABORTS_INTERNALLY_PROPERTY_NAME
Field Value
TypeDescription
String

RPC_PRIORITY_NAME

public static final String RPC_PRIORITY_NAME
Field Value
TypeDescription
String

VALID_PROPERTIES

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

Static Methods

closeSpanner()

public static void closeSpanner()

getDefaultProjectId(Credentials arg0)

public static String getDefaultProjectId(Credentials arg0)
Parameter
NameDescription
arg0com.google.auth.Credentials
Returns
TypeDescription
String

newBuilder()

public static ConnectionOptions.Builder newBuilder()
Returns
TypeDescription
Builder

Methods

getChannelProvider()

public TransportChannelProvider getChannelProvider()
Returns
TypeDescription
TransportChannelProvider

getConnection()

public Connection getConnection()
Returns
TypeDescription
Connection

getCredentials()

public Credentials getCredentials()
Returns
TypeDescription
com.google.auth.Credentials

getCredentialsUrl()

public String getCredentialsUrl()
Returns
TypeDescription
String

getDatabaseId()

public DatabaseId getDatabaseId()
Returns
TypeDescription
com.google.cloud.spanner.DatabaseId

getDatabaseName()

public String getDatabaseName()
Returns
TypeDescription
String

getDatabaseRole()

public String getDatabaseRole()
Returns
TypeDescription
String

getHost()

public String getHost()
Returns
TypeDescription
String

getInstanceId()

public String getInstanceId()
Returns
TypeDescription
String

getMaxSessions()

public Integer getMaxSessions()
Returns
TypeDescription
Integer

getMinSessions()

public Integer getMinSessions()
Returns
TypeDescription
Integer

getNumChannels()

public Integer getNumChannels()
Returns
TypeDescription
Integer

getProjectId()

public String getProjectId()
Returns
TypeDescription
String

getSessionPoolOptions()

public SessionPoolOptions getSessionPoolOptions()
Returns
TypeDescription
com.google.cloud.spanner.SessionPoolOptions

getUri()

public String getUri()
Returns
TypeDescription
String

getWarnings()

public String getWarnings()
Returns
TypeDescription
String

isAutoConfigEmulator()

public boolean isAutoConfigEmulator()
Returns
TypeDescription
boolean

isAutocommit()

public boolean isAutocommit()
Returns
TypeDescription
boolean

isReadOnly()

public boolean isReadOnly()
Returns
TypeDescription
boolean

isRetryAbortsInternally()

public boolean isRetryAbortsInternally()
Returns
TypeDescription
boolean

isReturnCommitStats()

public boolean isReturnCommitStats()
Returns
TypeDescription
boolean

toString()

public String toString()
Returns
TypeDescription
String
Overrides