Class EMulticastConnection.MessageReader

  • Enclosing class:
    EMulticastConnection

    protected static final class EMulticastConnection.MessageReader
    extends java.lang.Object
    This class is responsible for decoding the eBus header and message from an AsyncMulticastSocket's underlying inbound buffer.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected MessageReader​(int keyId, java.lang.String subject, MessageType mt)
      Creates a new multicast message reader for the given message key identifier, notification subject, and message data type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int keyId()
      Returns the message key identifier.
      java.lang.Class<?> messageClass()  
      java.lang.String subject()
      Returns message key subject.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MessageReader

        protected MessageReader​(int keyId,
                                java.lang.String subject,
                                MessageType mt)
        Creates a new multicast message reader for the given message key identifier, notification subject, and message data type.
        Parameters:
        keyId - associated message key identifier.
        subject - associated notification subject.
        mt - message data type containing decoder.
    • Method Detail

      • keyId

        public int keyId()
        Returns the message key identifier.
        Returns:
        message key identifier.
      • messageClass

        public java.lang.Class<?> messageClass()
      • subject

        public java.lang.String subject()
        Returns message key subject.
        Returns:
        message key subject.