Class CopyDataMessage (0.9.0)

publicclass CopyDataMessageextendsControlMessage

Normally used to send data to the back-end. Spanner does not currently support this, so send will throw a descriptive error to be sent to the user. Note that we do parse this in order for this to be future proof, and to ensure the input stream is flushed of the command (in order to continue receiving properly)

Inheritance

java.lang.Object > WireMessage > ControlMessage > CopyDataMessage

Inherited Members

Static Fields

IDENTIFIER

protectedstaticfinalcharIDENTIFIER
Field Value
Type Description

Constructors

CopyDataMessage(ConnectionHandler connection)

publicCopyDataMessage(ConnectionHandlerconnection)
Parameter
Name Description
connection ConnectionHandler

Methods

getIdentifier()

protectedStringgetIdentifier()

Used for logging.

Returns
Type Description
Overrides

getMessageName()

protectedStringgetMessageName()

Used for logging.

Returns
Type Description
Overrides

getPayload()

publicbyte[]getPayload()
Returns
Type Description
byte[]

getPayloadString()

protectedStringgetPayloadString()

Used for logging.

Returns
Type Description
Overrides

sendPayload()

protectedvoidsendPayload()

Override this method to include post-processing and metadata in the sending process. Template method for send.

Overrides Exceptions
Type Description

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 2025年10月30日 UTC.