If all sessions are in use and and maxSessions has been reached, fail the request by
throwing a SpannerException with the error code RESOURCE_EXHAUSTED. Default
behavior is to block the request.
How frequently to keep alive idle sessions. This should be less than 60 since an idle session
is automatically closed after 60 minutes. Sessions will be kept alive by sending a dummy
query "Select 1". Default value is 30 minutes.
(deprecated) set a higher value for #setMinSessions(int) instead of using this
configuration option. This option will be removed in a future release.
Maximum number of idle sessions that this pool will maintain. Pool will close any sessions
beyond this but making sure to always have at least as many sessions as specified by #setMinSessions. To determine how many sessions are idle we look at maximum number of
sessions used concurrently over a window of time. Any sessions beyond that are idle. Defaults
to 0.
Maximum number of sessions that this pool will have. If current numbers of sessions in the
pool is less than this and they are all busy, then a new session will be created for any new
operation. If current number of in use sessions is same as this and a new request comes, pool
can either block or fail. Defaults to 400.
(deprecated) This configuration value is no longer in use. The session pool does not prepare
any sessions for read/write transactions. Instead, a transaction will automatically be
started by the first statement that is executed by a transaction by including a
BeginTransaction option with that statement.
[[["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-11-19 UTC."],[],[]]