Classes inheriting WireOutput concern themselves with sending data back to the client using PG
wire protocol. These classes function similarly to com.google.cloud.spanner.pgadapter.wireprotocol.WireMessage in that they use the constructor to
instantiate items, but require send to be called to actually send data. Here, you must override
postSend with data you wish to send. Note that this subclass will handle sending the identifier
and length (provided you initialize them correctly through getIdentifier and he constructor
respectively) via send, so you just have to implement payload sending.
Whether this response sends more data than just the identifier (i.e.: length). WireOutput items
are convoluted in that some do send a large payload, and other (such as DeclineSSLResponse) send only one byte back. Override with false if that is the case.
This is the method which must be called to actually send data. Here we log information, send
the protocol identifier and length automatically (provided those items were instantiated
correctly). For most WireOutput subclasses this should be unchanged; there are however
exceptions (such as where length) need not be sent for very specific protocols: for those,
override this and you will need to send the identifier and log yourself.
Same as #send(), but with the option to skip the flush at the end. This is more
efficient for responses that contain multiple parts, such as query results.
[[["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."],[],[]]