Uses of Class
com.google.cloud.spanner.SessionPoolOptions.Builder
Packages that use SessionPoolOptions.Builder
Package
Description
A client for Cloud Spanner - A no-compromise relational database service.
-
Uses of SessionPoolOptions.Builder in com.google.cloud.spanner
Methods in com.google.cloud.spanner that return SessionPoolOptions.BuilderModifier and TypeMethodDescriptionstatic SessionPoolOptions.BuilderSessionPoolOptions.newBuilder()SessionPoolOptions.Builder.setAcquireSessionTimeout(org.threeten.bp.Duration acquireSessionTimeout) If greater than zero, we wait for said duration when no sessions are available in theSessionPool.SessionPoolOptions.Builder.setAutoDetectDialect(boolean autoDetectDialect) Sets whether the client should automatically execute a background query to detect the dialect that is used by the database or not.SessionPoolOptions.Builder.setBlockIfPoolExhausted()If all sessions are in use and there is no more room for creating new sessions, block for a session to become available.SessionPoolOptions.Builder.setFailIfPoolExhausted()If all sessions are in use and andmaxSessionshas been reached, fail the request by throwing aSpannerExceptionwith the error codeRESOURCE_EXHAUSTED.SessionPoolOptions.Builder.setKeepAliveIntervalMinutes(int intervalMinutes) How frequently to keep alive idle sessions.SessionPoolOptions.Builder.setMaxIdleSessions(int maxIdleSessions) Deprecated.SessionPoolOptions.Builder.setMaxSessions(int maxSessions) Maximum number of sessions that this pool will have.SessionPoolOptions.Builder.setMinSessions(int minSessions) Minimum number of sessions that this pool will always maintain.SessionPoolOptions.Builder.setRemoveInactiveSessionAfter(org.threeten.bp.Duration duration) SessionPoolOptions.Builder.setTrackStackTraceOfSessionCheckout(boolean trackStackTraceOfSessionCheckout) Sets whether the session pool should capture the call stack trace when a session is checked out of the pool.SessionPoolOptions.Builder.setWaitForMinSessions(org.threeten.bp.Duration waitForMinSessions) If greater than zero, waits for the session pool to have at leastSessionPoolOptions.minSessionsbefore returning the database client to the caller.SessionPoolOptions.Builder.setWarnAndCloseIfInactiveTransactions()If there are inactive transactions, release the resources consumed by such transactions.SessionPoolOptions.Builder.setWarnIfInactiveTransactions()If there are inactive transactions, log warning messages with the origin of such transactions to aid debugging.SessionPoolOptions.Builder.setWriteSessionsFraction(float writeSessionsFraction) Deprecated.This configuration value is no longer in use.SessionPoolOptions.toBuilder()
setMinSessions(int)instead of using this configuration option.