Class HeartbeatMessage
java.lang.Object
pt.unl.fct.di.novasys.babel2.channels.legacy.messages.HeartbeatMessage
- All Implemented Interfaces:
ControlMessage
Periodic heartbeat message exchanged to maintain legacy connection liveness.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HeartbeatMessageSingleton instance ofHeartbeatMessage.static final intInteger type identifier for heartbeat messages.Fields inherited from interface ControlMessage
CONTROL_MAGIC_NUMBERModifier and TypeFieldDescriptionstatic final intMagic number used to identify legacy control protocol frames. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the count of attributes carried in this control message envelope.intReturns the integer type identifier of this control message.
-
Field Details
-
INSTANCE
Singleton instance ofHeartbeatMessage. -
TYPE_INT
public static final int TYPE_INTInteger type identifier for heartbeat messages.- See Also:
-
-
Method Details
-
getTypeInt
public int getTypeInt()Description copied from interface:ControlMessageReturns the integer type identifier of this control message.- Specified by:
getTypeIntin interfaceControlMessage- Returns:
- the message type code
-
attributeMapSize
public int attributeMapSize()Description copied from interface:ControlMessageReturns the count of attributes carried in this control message envelope.- Specified by:
attributeMapSizein interfaceControlMessage- Returns:
- the attribute map size
-