@Immutable @ThreadSafe public class StreamInitiateReplyMessage extends AddressedPayloadMessage
Modifier and Type | Field and Description |
---|---|
(package private) int |
bufferSize |
(package private) byte |
destStreamID |
(package private) byte |
sourceStreamID |
payload
destNodeID
sourceNodeID
MTI_CONSUMER_IDENTIFIED, MTI_DATAGRAM, MTI_DATAGRAM_RCV_OK, MTI_DATAGRAM_REJECTED, MTI_IDENTIFY_CONSUMERS, MTI_IDENTIFY_CONSUMERS_RANGE, MTI_IDENTIFY_EVENTS, MTI_IDENTIFY_PRODUCERS, MTI_IDENTIFY_PRODUCERS_RANGE, MTI_INITIALIZATION_COMPLETE, MTI_LEARN_EVENT, MTI_OPT_INT_REJECTED, MTI_PC_EVENT_REPORT, MTI_PRODUCER_IDENTIFIED, MTI_PROTOCOL_IDENT_REPLY, MTI_PROTOCOL_IDENT_REQUEST, MTI_SIMPLE_NODE_IDENT_REPLY, MTI_SIMPLE_NODE_IDENT_REQUEST, MTI_STREAM_DATA_COMPLETE, MTI_STREAM_DATA_PROCEED, MTI_STREAM_DATA_SEND, MTI_STREAM_INIT_REPLY, MTI_STREAM_INIT_REQUEST, MTI_VERIFIED_NID, MTI_VERIFY_NID
Constructor and Description |
---|
StreamInitiateReplyMessage(NodeID source,
NodeID dest,
int bufferSize,
byte sourceStreamID,
byte destStreamID) |
Modifier and Type | Method and Description |
---|---|
void |
applyTo(MessageDecoder decoder,
Connection sender)
Implement message-type-specific
processing when this message
is received by a node.
|
boolean |
equals(Object o)
To be equal, messages have to have the
same type and content
|
int |
getBufferSize() |
byte |
getDestinationStreamID() |
MessageTypeIdentifier |
getEMTI() |
byte |
getSourceStreamID() |
(package private) static byte[] |
toPayload(int bufferSize,
byte sourceStreamID,
byte destStreamID) |
String |
toString() |
getMTI, getPayload
getDestNodeID, hashCode
getSourceNodeID
int bufferSize
byte sourceStreamID
byte destStreamID
public int getBufferSize()
public byte getDestinationStreamID()
public byte getSourceStreamID()
static byte[] toPayload(int bufferSize, byte sourceStreamID, byte destStreamID)
public void applyTo(MessageDecoder decoder, Connection sender)
Default is to do nothing.
public boolean equals(Object o)
AddressedMessage
equals
in class AddressedMessage
public String toString()
toString
in class AddressedPayloadMessage
public MessageTypeIdentifier getEMTI()
getEMTI
in class AddressedPayloadMessage
Copyright © 2017 The OpenLCB Group. All rights reserved.