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 class
SessionPoolOptions.Builder
Builder for creating SessionPoolOptions.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object o)
int
getKeepAliveIntervalMinutes()
int
getMaxIdleSessions()
Deprecated.Use a higher value forSessionPoolOptions.Builder.setMinSessions(int)
instead of setting this option.int
getMaxSessions()
int
getMinSessions()
org.threeten.bp.Duration
getRemoveInactiveSessionAfter()
float
getWriteSessionsFraction()
Deprecated.This value is no longer used.int
hashCode()
boolean
isAutoDetectDialect()
boolean
isBlockIfPoolExhausted()
boolean
isFailIfPoolExhausted()
static SessionPoolOptions.Builder
newBuilder()
SessionPoolOptions.Builder
toBuilder()
-
-
-
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()
-
-