public class SessionPoolOptions extends Object
DatabaseClient
.Modifier and Type | Class and Description |
---|---|
static class |
SessionPoolOptions.Builder
Builder for creating SessionPoolOptions.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getKeepAliveIntervalMinutes() |
int |
getMaxIdleSessions()
Deprecated.
Use a higher value for
SessionPoolOptions.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. 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.
|
int |
hashCode() |
boolean |
isAutoDetectDialect() |
boolean |
isBlockIfPoolExhausted() |
boolean |
isFailIfPoolExhausted() |
static SessionPoolOptions.Builder |
newBuilder() |
SessionPoolOptions.Builder |
toBuilder() |
public SessionPoolOptions.Builder toBuilder()
public int getMinSessions()
public int getMaxSessions()
@Deprecated public int getMaxIdleSessions()
SessionPoolOptions.Builder.setMinSessions(int)
instead of setting this option.@Deprecated public float getWriteSessionsFraction()
public int getKeepAliveIntervalMinutes()
public org.threeten.bp.Duration getRemoveInactiveSessionAfter()
public boolean isFailIfPoolExhausted()
public boolean isBlockIfPoolExhausted()
public boolean isAutoDetectDialect()
public static SessionPoolOptions.Builder newBuilder()
Copyright © 2022 Google LLC. All rights reserved.