The operation is blocked until a currently running operation
completes and releases its Spanner session. If the operation is
synchronous, the thread will be blocked until it can complete.
If the operation is asynchronous, it will be completed on the
threadpool when resources become available.
Fail
The operation will fail with an exception with the ErrorCode set to ResourceExhausted.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eResourcesExhaustedBehavior\u003c/code\u003e enum within the Google Cloud Spanner v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResourcesExhaustedBehavior\u003c/code\u003e enum determines how the system should respond when the \u003ccode\u003eMaximumActiveSessions\u003c/code\u003e limit is reached.\u003c/p\u003e\n"],["\u003cp\u003eThere are two possible behaviors defined within this enum: \u003ccode\u003eBlock\u003c/code\u003e, which will wait for a session to become available, or \u003ccode\u003eFail\u003c/code\u003e, which will cause the operation to throw an exception.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers a range of versions, from 3.5.0 up to the latest beta version 5.0.0-beta05, allowing users to see the \u003ccode\u003eResourcesExhaustedBehavior\u003c/code\u003e information across multiple releases.\u003c/p\u003e\n"]]],[],null,[]]