Send feedback
Class SessionPoolOptions (6.50.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 6.50.1 keyboard_arrow_down
public class SessionPoolOptions
Options for the session pool used by DatabaseClient
.
Inheritance
Object >
SessionPoolOptions
Static Methods
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()
Returns Type Description org.threeten.bp.Duration
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-08-30 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{
"lastModified": "Last updated 2024-08-30 UTC.",
"confidential": False
}