Package com.google.cloud.spanner
Class SessionPoolOptions
- java.lang.Object
-
- com.google.cloud.spanner.SessionPoolOptions
-
public class SessionPoolOptions extends Object
Options for the session pool used byDatabaseClient.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSessionPoolOptions.BuilderBuilder for creating SessionPoolOptions.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object o)intgetKeepAliveIntervalMinutes()intgetMaxIdleSessions()Deprecated.Use a higher value forSessionPoolOptions.Builder.setMinSessions(int)instead of setting this option.intgetMaxSessions()intgetMinSessions()org.threeten.bp.DurationgetRemoveInactiveSessionAfter()floatgetWriteSessionsFraction()Deprecated.This value is no longer used.inthashCode()booleanisAutoDetectDialect()booleanisBlockIfPoolExhausted()booleanisFailIfPoolExhausted()static SessionPoolOptions.BuildernewBuilder()SessionPoolOptions.BuildertoBuilder()
-
-
-
Method Detail
-
toBuilder
public SessionPoolOptions.Builder toBuilder()
-
getMinSessions
public int getMinSessions()
-
getMaxSessions
public int getMaxSessions()
-
getMaxIdleSessions
@Deprecated public int getMaxIdleSessions()
Deprecated.Use a higher value forSessionPoolOptions.Builder.setMinSessions(int)instead of setting this option.
-
getWriteSessionsFraction
@Deprecated public float 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()
-
newBuilder
public static SessionPoolOptions.Builder newBuilder()
-
-