Package com.mysql.cj.protocol
Interface Message
- All Known Implementing Classes:
NativePacketPayload
,XMessage
public interface Message
Message is the content of a full single message (native protocol packet or protobuf message),
independent from on-wire splitting, communicated with the server.
-
Method Summary
Modifier and Type Method Description byte[]
getByteBuffer()
Returns the array of bytes this Buffer is using to read from.int
getPosition()
Returns the current position to write to/ read from
-
Method Details
-
getByteBuffer
byte[] getByteBuffer()Returns the array of bytes this Buffer is using to read from.- Returns:
- byte array being read from
-
getPosition
int getPosition()Returns the current position to write to/ read from- Returns:
- the current position to write to/ read from
-