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 |
---|---|
int |
getKeepAliveIntervalMinutes() |
int |
getMaxIdleSessions() |
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.
|
boolean |
isBlockIfPoolExhausted() |
boolean |
isFailIfPoolExhausted() |
static SessionPoolOptions.Builder |
newBuilder() |
public int getMinSessions()
public int getMaxSessions()
public int getMaxIdleSessions()
@Deprecated public float getWriteSessionsFraction()
public int getKeepAliveIntervalMinutes()
public org.threeten.bp.Duration getRemoveInactiveSessionAfter()
public boolean isFailIfPoolExhausted()
public boolean isBlockIfPoolExhausted()
public static SessionPoolOptions.Builder newBuilder()
Copyright © 2020 Google LLC. All rights reserved.