Send feedback
Interface SpannerRpc.StreamingCall (6.74.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 6.74.1 keyboard_arrow_down
public static interface SpannerRpc . StreamingCall
Handle for cancellation of a streaming read or query call.
Methods
cancel(String message)
public abstract void cancel ( String message )
Parameter
Name
Description
message
String
a message to use in the final status of any underlying RPC
getCallContext()
public abstract ApiCallContext getCallContext ()
request(int numMessages)
public abstract void request ( int numMessages )
Requests more messages from the stream. We disable the auto flow control mechanism in grpc,
so we need to request messages ourself. This gives us more control over how much buffer we
maintain in the client. Grpc will request 1 initial message automatically so we don't need to
call this at the beginning. After that it should be called whenever there is a flow control
window available based on the flow control setting configured by the client. Currently we do
not have any flow control so this is called automatically when a message is received.
Parameter
Name
Description
numMessages
int
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-04 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-10-04 UTC."}
[[["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-10-04 UTC."]]