Called when a stream needs to be restarted, the implementation should generate a request that
will yield a new stream whose first response would come right after the last response received
by processResponse.
Parameter
Name
Description
originalRequest
RequestT
Returns
Type
Description
RequestT
processResponse(ResponseT response)
publicResponseTprocessResponse(ResponseTresponse)
Called by the ServerStreamingAttemptCallable when a response has been successfully
received. This method accomplishes two goals:
It allows the strategy implementation to update its internal state so that it can compose
the resume request
It allows the strategy to alter the incoming responses to adjust for after resume. For
example, if the responses are numbered sequentially from the start of the stream, upon
resume, the strategy could rewrite the messages to continue the sequence from where it
left off. Please note that all messages (even for the first attempt) will be passed
through this method.
[[["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 2025-09-04 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eSimpleStreamResumptionStrategy\u003c/code\u003e class, which is the simplest implementation of \u003ccode\u003eStreamResumptionStrategy\u003c/code\u003e and returns the initial request for unstarted streams.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is 2.63.1, and the page lists links to documentation for many previous versions of the library, going back to version 2.7.1.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSimpleStreamResumptionStrategy\u003c/code\u003e allows for the creation of new instances, the ability to determine if a resume request can be created, and methods to obtain a resume request and process a response.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements the \u003ccode\u003eStreamResumptionStrategy\u003c/code\u003e interface and inherits methods from \u003ccode\u003ejava.lang.Object\u003c/code\u003e, offering functionality such as creating a new instance without state, retrieving a resume request from an original request, and processing responses.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes a comprehensive list of methods within \u003ccode\u003eSimpleStreamResumptionStrategy\u003c/code\u003e including \u003ccode\u003ecanResume()\u003c/code\u003e, \u003ccode\u003ecreateNew()\u003c/code\u003e, \u003ccode\u003egetResumeRequest(RequestT originalRequest)\u003c/code\u003e, and \u003ccode\u003eprocessResponse(ResponseT response)\u003c/code\u003e, and each of their function descriptions.\u003c/p\u003e\n"]]],[],null,[]]