public class CopyDataMessage extends ControlMessage
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)
Static Fields
IDENTIFIER
protected static final char IDENTIFIER
Type | Description |
char |
Constructors
CopyDataMessage(ConnectionHandler connection)
public CopyDataMessage(ConnectionHandler connection)
Name | Description |
connection | ConnectionHandler |
Methods
getIdentifier()
protected String getIdentifier()
Used for logging.
Type | Description |
String |
getMessageName()
protected String getMessageName()
Used for logging.
Type | Description |
String |
getPayload()
public byte[] getPayload()
Type | Description |
byte[] |
getPayloadString()
protected String getPayloadString()
Used for logging.
Type | Description |
String |
sendPayload()
protected void sendPayload()
Override this method to include post-processing and metadata in the sending process. Template method for send.
Type | Description |
Exception |