Msg.Builder, Msg.Type
Modifier and Type | Field and Description |
---|---|
private java.io.ByteArrayOutputStream |
out |
COMMAND, CREDENTIAL, IDENTITY, MAX_GROUP_LENGTH, MORE, SHARED
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Msg |
build() |
Msg |
put(byte[] src,
int off,
int len) |
Msg |
put(java.nio.ByteBuffer src,
int off,
int len) |
protected Msg |
put(int index,
byte b) |
Msg |
putShortString(java.lang.String data)
Puts a string into the message, prefixed with its length.
|
void |
setFlags(int flags) |
int |
size() |
buf, check, data, fd, flags, get, get, getBytes, getBytes, getGroup, getInt, getLong, getMetadata, getRoutingId, getShort, getWriteIndex, hasMore, initDelimiter, initJoin, initLeave, isCommand, isCredential, isDelimiter, isIdentity, isJoin, isLeave, put, put, put, put, resetFlags, resetMetadata, resetRoutingId, setFd, setGroup, setMetadata, setRoutingId, setWriteIndex, toString, transfer
public Msg putShortString(java.lang.String data)
Msg
putShortString
in class Msg
data
- a string shorter than 256 characters. If null, defaults to a no-op.public Msg build()