protected abstract class BinaryProtocol.SimpleMessage extends BinaryProtocol.Message
| Modifier | Constructor and Description |
|---|---|
protected |
SimpleMessage() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
getBoolean(ByteBuffer buffer) |
protected byte[] |
getByteArray(ByteBuffer buffer) |
protected Double |
getDouble(ByteBuffer buffer) |
protected <T extends Enum<T>> |
getEnum(Class<T> enumType,
ByteBuffer buffer) |
protected NameIdPair |
getNameIdPair(ByteBuffer buffer) |
protected String[] |
getStringArray(ByteBuffer buffer)
Reconstitutes an array of strings.
|
protected VLSN |
getVLSN(ByteBuffer buffer) |
protected void |
putByteArray(ByteBuffer buffer,
byte[] ba)
Put the bytes for the wire format of the specified byte array into
the current position in the buffer.
|
protected void |
putWireFormat(ByteBuffer buffer,
Object obj)
Put the bytes of the wire format for the object into the current
position in the buffer.
|
protected ByteBuffer |
wireFormat(Object... arguments)
Assembles a sequence of arguments into its byte based wire format.
|
protected int |
wireFormatSize(Object obj)
Return the wire format size of the specified object.
|
allocateInitializedBuffer, getOp, match, toString, wireFormatprotected ByteBuffer wireFormat(Object... arguments)
arguments - the arguments to be passed in the messageprotected void putWireFormat(ByteBuffer buffer, Object obj)
buffer - the bufferobj - the objectEnvironmentFailureException - if the object is not supportedprotected void putByteArray(ByteBuffer buffer, byte[] ba)
buffer - the bufferba - the byte arrayprotected int wireFormatSize(Object obj)
obj - the objectEnvironmentFailureException - if the object is not supportedprotected String[] getStringArray(ByteBuffer buffer)
buffer - protected byte[] getByteArray(ByteBuffer buffer)
protected boolean getBoolean(ByteBuffer buffer)
protected VLSN getVLSN(ByteBuffer buffer)
protected <T extends Enum<T>> T getEnum(Class<T> enumType, ByteBuffer buffer)
protected Double getDouble(ByteBuffer buffer)
protected NameIdPair getNameIdPair(ByteBuffer buffer)
Copyright © 2024. All rights reserved.