Class HeartbeatMessage

java.lang.Object
pt.unl.fct.di.novasys.babel2.channels.legacy.messages.HeartbeatMessage
All Implemented Interfaces:
ControlMessage

public final class HeartbeatMessage extends Object implements ControlMessage
Periodic heartbeat message exchanged to maintain legacy connection liveness.
  • Field Details

    • INSTANCE

      public static final HeartbeatMessage INSTANCE
      Singleton instance of HeartbeatMessage.
    • TYPE_INT

      public static final int TYPE_INT
      Integer type identifier for heartbeat messages.
      See Also:
  • Method Details

    • getTypeInt

      public int getTypeInt()
      Description copied from interface: ControlMessage
      Returns the integer type identifier of this control message.
      Specified by:
      getTypeInt in interface ControlMessage
      Returns:
      the message type code
    • attributeMapSize

      public int attributeMapSize()
      Description copied from interface: ControlMessage
      Returns the count of attributes carried in this control message envelope.
      Specified by:
      attributeMapSize in interface ControlMessage
      Returns:
      the attribute map size