Package com.google.cloud.spanner
Class SessionPoolOptions
java.lang.Object
com.google.cloud.spanner.SessionPoolOptions
Options for the session pool used by
DatabaseClient
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder for creating SessionPoolOptions. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
Deprecated.int
int
org.threeten.bp.Duration
float
Deprecated.This value is no longer used.int
hashCode()
boolean
boolean
boolean
boolean
static SessionPoolOptions.Builder
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toBuilder
-
getMinSessions
public int getMinSessions() -
getMaxSessions
public int getMaxSessions() -
getMaxIdleSessions
Deprecated.Use a higher value forSessionPoolOptions.Builder.setMinSessions(int)
instead of setting this option. -
getWriteSessionsFraction
Deprecated.This value is no longer used. The session pool does not prepare any sessions for read/write transactions. Instead, a transaction will be started by including a BeginTransaction option with the first statement of a transaction. This method may be removed in a future release. -
getKeepAliveIntervalMinutes
public int getKeepAliveIntervalMinutes() -
getRemoveInactiveSessionAfter
public org.threeten.bp.Duration getRemoveInactiveSessionAfter() -
isFailIfPoolExhausted
public boolean isFailIfPoolExhausted() -
isBlockIfPoolExhausted
public boolean isBlockIfPoolExhausted() -
isAutoDetectDialect
public boolean isAutoDetectDialect() -
isTrackStackTraceOfSessionCheckout
public boolean isTrackStackTraceOfSessionCheckout() -
newBuilder
-
SessionPoolOptions.Builder.setMinSessions(int)
instead of setting this option.