MessageEvent

  • MessageEvent provides information about messages received by a MessageApi.MessageListener.

  • It includes methods to access the message data, delivery path, request ID, and the sender's node ID.

  • The message data is returned as a byte array using getData().

  • getPath() provides the destination path of the message.

  • getRequestId() and getSourceNodeId() return the sender's request ID and node ID, respectively.

public interface MessageEvent

Information about a message received by a listener.

Public Method Summary

abstract byte[]
getData()
Returns the data passed by the message.
abstract String
getPath()
Returns the path the message is being delivered to
abstract int
getRequestId()
Returns the request id of the message, generated by the sender
abstract String
getSourceNodeId()
Returns the node ID of the sender.

Public Methods

public abstract byte[] getData ()

Returns the data passed by the message.

public abstract String getPath ()

Returns the path the message is being delivered to

public abstract int getRequestId ()

Returns the request id of the message, generated by the sender

public abstract String getSourceNodeId ()

Returns the node ID of the sender.