[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class ConnectionOptions (0.27.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.27.1 (latest)](/java/docs/reference/pgadapter/latest/com.google.cloud.spanner.connection.ConnectionOptions)\n- [0.27.0](/java/docs/reference/pgadapter/0.27.0/com.google.cloud.spanner.connection.ConnectionOptions)\n- [0.26.0](/java/docs/reference/pgadapter/0.26.0/com.google.cloud.spanner.connection.ConnectionOptions)\n- [0.25.0](/java/docs/reference/pgadapter/0.25.0/com.google.cloud.spanner.connection.ConnectionOptions)\n- [0.24.0](/java/docs/reference/pgadapter/0.24.0/com.google.cloud.spanner.connection.ConnectionOptions)\n- [0.23.1](/java/docs/reference/pgadapter/0.23.1/com.google.cloud.spanner.connection.ConnectionOptions)\n- [0.22.1](/java/docs/reference/pgadapter/0.22.1/com.google.cloud.spanner.connection.ConnectionOptions)\n- [0.21.0](/java/docs/reference/pgadapter/0.21.0/com.google.cloud.spanner.connection.ConnectionOptions)\n- [0.20.0](/java/docs/reference/pgadapter/0.20.0/com.google.cloud.spanner.connection.ConnectionOptions)\n- [0.19.1](/java/docs/reference/pgadapter/0.19.1/com.google.cloud.spanner.connection.ConnectionOptions)\n- [0.18.4](/java/docs/reference/pgadapter/0.18.4/com.google.cloud.spanner.connection.ConnectionOptions)\n- [0.17.0](/java/docs/reference/pgadapter/0.17.0/com.google.cloud.spanner.connection.ConnectionOptions)\n- [0.16.0](/java/docs/reference/pgadapter/0.16.0/com.google.cloud.spanner.connection.ConnectionOptions)\n- [0.15.0](/java/docs/reference/pgadapter/0.15.0/com.google.cloud.spanner.connection.ConnectionOptions)\n- [0.14.1](/java/docs/reference/pgadapter/0.14.1/com.google.cloud.spanner.connection.ConnectionOptions)\n- [0.9.0](/java/docs/reference/pgadapter/0.9.0/com.google.cloud.spanner.connection.ConnectionOptions)\n- [0.8.0](/java/docs/reference/pgadapter/0.8.0/com.google.cloud.spanner.connection.ConnectionOptions)\n- [0.7.0](/java/docs/reference/pgadapter/0.7.0/com.google.cloud.spanner.connection.ConnectionOptions)\n- [0.6.1](/java/docs/reference/pgadapter/0.6.1/com.google.cloud.spanner.connection.ConnectionOptions)\n- [0.5.1](/java/docs/reference/pgadapter/0.5.1/com.google.cloud.spanner.connection.ConnectionOptions) \n\n public class ConnectionOptions\n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e ConnectionOptions \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Fields\n-------------\n\n### AUTOCOMMIT_PROPERTY_NAME\n\n public static final String AUTOCOMMIT_PROPERTY_NAME\n\n### AUTO_PARTITION_MODE_PROPERTY_NAME\n\n public static final String AUTO_PARTITION_MODE_PROPERTY_NAME\n\n### CHANNEL_PROVIDER_PROPERTY_NAME\n\n public static final String CHANNEL_PROVIDER_PROPERTY_NAME\n\n### CREDENTIALS_PROPERTY_NAME\n\n public static final String CREDENTIALS_PROPERTY_NAME\n\n### CREDENTIALS_PROVIDER_PROPERTY_NAME\n\n public static final String CREDENTIALS_PROVIDER_PROPERTY_NAME\n\n### DATABASE_ROLE_PROPERTY_NAME\n\n public static final String DATABASE_ROLE_PROPERTY_NAME\n\n### DATA_BOOST_ENABLED_PROPERTY_NAME\n\n public static final String DATA_BOOST_ENABLED_PROPERTY_NAME\n\n### DELAY_TRANSACTION_START_UNTIL_FIRST_WRITE_NAME\n\n public static final String DELAY_TRANSACTION_START_UNTIL_FIRST_WRITE_NAME\n\n### ENABLE_CHANNEL_PROVIDER_SYSTEM_PROPERTY\n\n public static final String ENABLE_CHANNEL_PROVIDER_SYSTEM_PROPERTY\n\n### ENABLE_CREDENTIALS_PROVIDER_SYSTEM_PROPERTY\n\n public static final String ENABLE_CREDENTIALS_PROVIDER_SYSTEM_PROPERTY\n\n### ENABLE_ENCODED_CREDENTIALS_SYSTEM_PROPERTY\n\n public static final String ENABLE_ENCODED_CREDENTIALS_SYSTEM_PROPERTY\n\n### ENCODED_CREDENTIALS_PROPERTY_NAME\n\n public static final String ENCODED_CREDENTIALS_PROPERTY_NAME\n\n### LENIENT_PROPERTY_NAME\n\n public static final String LENIENT_PROPERTY_NAME\n\n### MAX_PARTITIONED_PARALLELISM_PROPERTY_NAME\n\n public static final String MAX_PARTITIONED_PARALLELISM_PROPERTY_NAME\n\n### MAX_PARTITIONS_PROPERTY_NAME\n\n public static final String MAX_PARTITIONS_PROPERTY_NAME\n\n### MAX_SESSIONS_PROPERTY_NAME\n\n public static final String MAX_SESSIONS_PROPERTY_NAME\n\n### MIN_SESSIONS_PROPERTY_NAME\n\n public static final String MIN_SESSIONS_PROPERTY_NAME\n\n### NUM_CHANNELS_PROPERTY_NAME\n\n public static final String NUM_CHANNELS_PROPERTY_NAME\n\n### OAUTH_TOKEN_PROPERTY_NAME\n\n public static final String OAUTH_TOKEN_PROPERTY_NAME\n\n### READONLY_PROPERTY_NAME\n\n public static final String READONLY_PROPERTY_NAME\n\n### RETRY_ABORTS_INTERNALLY_PROPERTY_NAME\n\n public static final String RETRY_ABORTS_INTERNALLY_PROPERTY_NAME\n\n### ROUTE_TO_LEADER_PROPERTY_NAME\n\n public static final String ROUTE_TO_LEADER_PROPERTY_NAME\n\n### RPC_PRIORITY_NAME\n\n public static final String RPC_PRIORITY_NAME\n\n### TRACK_CONNECTION_LEAKS_PROPERTY_NAME\n\n public static final String TRACK_CONNECTION_LEAKS_PROPERTY_NAME\n\n### TRACK_SESSION_LEAKS_PROPERTY_NAME\n\n public static final String TRACK_SESSION_LEAKS_PROPERTY_NAME\n\n### VALID_PROPERTIES\n\n public static final Set\u003cConnectionOptions.ConnectionProperty\u003e VALID_PROPERTIES\n\nStatic Methods\n--------------\n\n### closeSpanner()\n\n public static void closeSpanner()\n\n### getDefaultProjectId(Credentials arg0)\n\n public static String getDefaultProjectId(Credentials arg0)\n\n### newBuilder()\n\n public static ConnectionOptions.Builder newBuilder()\n\nMethods\n-------\n\n### getChannelProvider()\n\n public TransportChannelProvider getChannelProvider()\n\n### getConnection()\n\n public Connection getConnection()\n\n### getCredentials()\n\n public Credentials getCredentials()\n\n### getCredentialsUrl()\n\n public String getCredentialsUrl()\n\n### getDatabaseId()\n\n public DatabaseId getDatabaseId()\n\n### getDatabaseName()\n\n public String getDatabaseName()\n\n### getDatabaseRole()\n\n public String getDatabaseRole()\n\n### getDialect()\n\n public Dialect getDialect()\n\n### getHost()\n\n public String getHost()\n\n### getInstanceId()\n\n public String getInstanceId()\n\n### getMaxSessions()\n\n public Integer getMaxSessions()\n\n### getMinSessions()\n\n public Integer getMinSessions()\n\n### getNumChannels()\n\n public Integer getNumChannels()\n\n### getProjectId()\n\n public String getProjectId()\n\n### getSessionPoolOptions()\n\n public SessionPoolOptions getSessionPoolOptions()\n\n### getUri()\n\n public String getUri()\n\n### getWarnings()\n\n public String getWarnings()\n\n### isAutoConfigEmulator()\n\n public boolean isAutoConfigEmulator()\n\n### isAutocommit()\n\n public boolean isAutocommit()\n\n### isReadOnly()\n\n public boolean isReadOnly()\n\n### isRetryAbortsInternally()\n\n public boolean isRetryAbortsInternally()\n\n### isReturnCommitStats()\n\n public boolean isReturnCommitStats()\n\n### isRouteToLeader()\n\n public boolean isRouteToLeader()\n\n### toString()\n\n public String toString()\n\n**Overrides** \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--)"]]