public static interface SpannerRpc.ResultStreamConsumer
Consumer for the results produced by a streaming read or query call.
Methods
cancelQueryWhenClientIsClosed()
public abstract boolean cancelQueryWhenClientIsClosed()
Returns true if the stream should be cancelled when the Spanner client is closed. This
returns true for com.google.cloud.spanner.BatchReadOnlyTransaction, as these use a
non-pooled session. Pooled sessions are deleted when the Spanner client is closed, and this
automatically also cancels any query that uses the session, which means that we don't need to
explicitly cancel those queries when the Spanner client is closed.
[[["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 2024-11-26 UTC."],[],[]]