This repository was archived by the owner on Apr 7, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
google-cloud-spanner/src/main/java/com/google/cloud/spanner Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -988,15 +988,10 @@ Builder setFailOnSessionLeak() {
988988 }
989989
990990 /**
991- * Sets whether the session pool should capture the call stack trace when a session is checked
992- * out of the pool. This will internally prepare a {@link
993- * com.google.cloud.spanner.SessionPool.LeakedSessionException} that will only be thrown if the
994- * session is actually leaked. This makes it easier to debug session leaks, as the stack trace
995- * of the thread that checked out the session will be available in the exception.
996- *
997- * <p>Some monitoring tools might log these exceptions even though they are not thrown. This
998- * option can be used to suppress the creation and logging of these exceptions.
991+ * @deprecated This option is no longer used as the session pool has been removed. Multiplexed
992+ * sessions are now used for all operations.
999993 */
994+ @ Deprecated
1000995 public Builder setTrackStackTraceOfSessionCheckout (boolean trackStackTraceOfSessionCheckout ) {
1001996 this .trackStackTraceOfSessionCheckout = trackStackTraceOfSessionCheckout ;
1002997 return this ;
@@ -1042,9 +1037,10 @@ public Builder setAcquireSessionTimeout(org.threeten.bp.Duration acquireSessionT
10421037 }
10431038
10441039 /**
1045- * If greater than zero, we wait for said duration when no sessions are available in the {@link
1046- * SessionPool}. The default is a 60s timeout. Set the value to null to disable the timeout .
1040+ * @deprecated This option is no longer used as the session pool has been removed. Multiplexed
1041+ * sessions are now used for all operations .
10471042 */
1043+ @ Deprecated
10481044 public Builder setAcquireSessionTimeoutDuration (Duration acquireSessionTimeout ) {
10491045 try {
10501046 if (acquireSessionTimeout != null ) {
You can’t perform that action at this time.
0 commit comments