Send feedback
Class SessionPoolOptions (6.83.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public class SessionPoolOptions
Options for the session pool used by DatabaseClient
.
Inheritance
Object >
SessionPoolOptions
Static Methods
getUseMultiplexedSessionFromEnvVariablePartitionedOps()
protected static Boolean getUseMultiplexedSessionFromEnvVariablePartitionedOps ()
newBuilder()
public static SessionPoolOptions . Builder newBuilder ()
Methods
equals(Object o)
public boolean equals ( Object o )
Parameter
Name
Description
o
Object
Overrides
getKeepAliveIntervalMinutes()
public int getKeepAliveIntervalMinutes ()
Returns
Type
Description
int
getMaxIdleSessions() (deprecated)
public int getMaxIdleSessions ()
Returns
Type
Description
int
getMaxSessions()
public int getMaxSessions ()
Returns
Type
Description
int
getMinSessions()
public int getMinSessions ()
Returns
Type
Description
int
getRemoveInactiveSessionAfter()
public Duration getRemoveInactiveSessionAfter ()
Obsolete
Use getRemoveInactiveSessionAfterDuration() instead
This feature is stable for usage in this major version, but may be deprecated in a future release.
This method is obsolete. Use #getRemoveInactiveSessionAfterDuration() instead.
Returns
Type
Description
org.threeten.bp.Duration
getRemoveInactiveSessionAfterDuration()
public Duration getRemoveInactiveSessionAfterDuration ()
getUseMultiplexedSession()
public boolean getUseMultiplexedSession ()
getUseMultiplexedSessionBlindWrite()
protected boolean getUseMultiplexedSessionBlindWrite ()
getUseMultiplexedSessionForRW()
public boolean getUseMultiplexedSessionForRW ()
getUseMultiplexedSessionPartitionedOps()
public boolean getUseMultiplexedSessionPartitionedOps ()
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.
Returns
Type
Description
float
hashCode()
Returns
Type
Description
int
Overrides
isAutoDetectDialect()
public boolean isAutoDetectDialect ()
isBlockIfPoolExhausted()
public boolean isBlockIfPoolExhausted ()
isFailIfPoolExhausted()
public boolean isFailIfPoolExhausted ()
isTrackStackTraceOfSessionCheckout()
public boolean isTrackStackTraceOfSessionCheckout ()
toBuilder()
public SessionPoolOptions . Builder toBuilder ()
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-19 UTC."],[],[]]