Skip to content

feat: add session pool option for modelling a timeout around session acquisition. #2641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Sep 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update google-cloud-spanner/src/main/java/com/google/cloud/spanner/Se…
…ssionPoolOptions.java

Co-authored-by: Knut Olav Løite <[email protected]>
  • Loading branch information
arpan14 and olavloite authored Sep 26, 2023
commit 3cefc0317f441dc9b0ade7dc6bcda5116490001d
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ public Builder setWaitForMinSessions(Duration waitForMinSessions) {

/**
* If greater than zero, we wait for said duration when no sessions are available in the {@link
* SessionPool}. When no configuration is passed, we default to 60s to acquire a session.
* SessionPool}. When no configuration is passed, the default is a 60s timeout.
*/
public Builder setAcquireSessionTimeout(Duration acquireSessionTimeout) {
this.acquireSessionTimeout = acquireSessionTimeout;
Expand Down