Package zmq
Class Msg.Builder
java.lang.Object
zmq.Msg
zmq.Msg.Builder
- Enclosing class:
Msg
-
Nested Class Summary
Nested classes/interfaces inherited from class zmq.Msg
Msg.Builder, Msg.Type
-
Field Summary
FieldsFields inherited from class zmq.Msg
COMMAND, CREDENTIAL, IDENTITY, MAX_GROUP_LENGTH, MORE, SHARED
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class zmq.Msg
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
-
Field Details
-
out
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
size
public int size() -
put
-
put
-
put
-
putShortString
Description copied from class:Msg
Puts a string into the message, prefixed with its length. Users shall size the message by adding 1 to the length of the string: It needs to be able to accommodate (data.length+1) more bytes.- Overrides:
putShortString
in classMsg
- Parameters:
data
- a string shorter than 256 characters. If null, defaults to a no-op.- Returns:
- the same message.
-
setFlags
public void setFlags(int flags) -
build
-