Package | Description |
---|---|
org.km3net.clbv2.remote.msg |
Provides low-level messaging facilities.
|
Modifier and Type | Field and Description |
---|---|
static MessageDecoder<java.lang.Boolean> |
StdDecoders.BOOL
Responses returning a boolean.
|
static MessageDecoder<java.lang.Float> |
StdDecoders.F32 |
static MessageDecoder<java.lang.Short> |
StdDecoders.I16
Responses returning an short.
|
static MessageDecoder<java.lang.Integer> |
StdDecoders.I32
Responses returning an integer.
|
static MessageDecoder<java.lang.Byte> |
StdDecoders.I8
Responses returning an byte.
|
static MessageDecoder<java.lang.String> |
StdDecoders.STRING
Expects a string.
|
static MessageDecoder<java.lang.String> |
StdDecoders.STRING_LINIENT
Expects a string, or an empty message.
|
static MessageDecoder<byte[]> |
StdDecoders.VAR_BYTE_ARR
Responses returning a variable byte array
|
static MessageDecoder<int[]> |
StdDecoders.VAR_INT_ARR
Responses returning an integer array.
|
static MessageDecoder<java.util.Map<java.lang.Integer,java.lang.Object>> |
StdDecoders.VAR_LIST_DECODER
Decodes a list of variables, containing pairs.
|
static MessageDecoder<java.lang.Void> |
StdDecoders.VOID
Responses returning void (e.g.
|
Modifier and Type | Method and Description |
---|---|
<T> Response<T> |
MessageProcessor.postCommand(int type,
MessageWriter mw,
MessageDecoder<T> decoder,
java.lang.Object user)
Posts a command to a node.
|
<T> void |
MessageProcessor.setEventListener(int type,
MessageDecoder<T> decoder,
MessageEventHandler<T> handler)
Register an event handler for a specific message type.
|
Constructor and Description |
---|
Response(MessageDecoder<T> decoder,
MessageProcessor messageProcessor,
int id,
int type,
java.lang.Object user)
Create a new response.
|