Class CopyDataMessage (0.27.1)

publicclassCopyDataMessageextendsControlMessage

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

Static Fields

IDENTIFIER

protectedstaticfinalcharIDENTIFIER
Field Value
TypeDescription
char

Constructors

CopyDataMessage(ConnectionHandler connection)

publicCopyDataMessage(ConnectionHandlerconnection)
Parameter
NameDescription
connectionConnectionHandler

Methods

getIdentifier()

publicStringgetIdentifier()

Used for logging.

Returns
TypeDescription
String
Overrides

getMessageName()

protectedStringgetMessageName()

Used for logging.

Returns
TypeDescription
String
Overrides

getPayload()

publicbyte[]getPayload()
Returns
TypeDescription
byte[]

getPayloadString()

protectedStringgetPayloadString()

Used for logging.

Returns
TypeDescription
String
Overrides

sendPayload()

protectedvoidsendPayload()

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

Overrides
Exceptions
TypeDescription
Exception