Set how long to wait before considering the stream orphaned by the user and closing it.
java.time.Duration#ZERO disables the check for abandoned streams.
When using the method, make sure that the RetrySettings are complete. For example,
the following code will disable retries because the retry delay is not set:
[[["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-15 UTC."],[[["\u003cp\u003eThe webpage provides documentation for \u003ccode\u003eServerStreamingCallSettings.Builder\u003c/code\u003e in the Google API Client Libraries for Java, with the latest version being 2.63.1.\u003c/p\u003e\n"],["\u003cp\u003eIt details the inheritance hierarchy, showing that \u003ccode\u003eServerStreamingCallSettings.Builder\u003c/code\u003e extends \u003ccode\u003eStreamingCallSettings.Builder\u003c/code\u003e and ultimately \u003ccode\u003ejava.lang.Object\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation lists various methods, including \u003ccode\u003ebuild()\u003c/code\u003e, \u003ccode\u003egetIdleTimeoutDuration()\u003c/code\u003e, \u003ccode\u003egetResumptionStrategy()\u003c/code\u003e, and \u003ccode\u003egetRetrySettings()\u003c/code\u003e, among others, that are used for configuring server-streaming settings.\u003c/p\u003e\n"],["\u003cp\u003eMethods with \u003ccode\u003eDuration\u003c/code\u003e in their name allow setting time limits, such as \u003ccode\u003esetIdleTimeoutDuration(Duration idleTimeout)\u003c/code\u003e to manage idle streams, and \u003ccode\u003esetWaitTimeoutDuration(Duration waitTimeout)\u003c/code\u003e to control how long to wait for server messages.\u003c/p\u003e\n"],["\u003cp\u003eThe page also highlights how to set retry settings, including the use of \u003ccode\u003eretrySettings()\u003c/code\u003e, \u003ccode\u003esetRetrySettings(RetrySettings retrySettings)\u003c/code\u003e and \u003ccode\u003esetRetryableCodes()\u003c/code\u003e to control how the client handles retryable errors.\u003c/p\u003e\n"]]],[],null,[]]