Package jmri.jmrix.lenz
Class XNetHeartBeat
java.lang.Object
jmri.jmrix.lenz.XNetHeartBeat
- All Implemented Interfaces:
EventListener,AbstractMRListener,XNetListener
XNet specific class to send heartbeat messages to
the XNet. Heartbeat messages are only required if
no other messages are sent for a specific period
of time, so any outgoing message should restart
the timer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()voidmessage(XNetMessage msg) Member function that will be invoked by an XNetInterface implementation to forward an XNet message sent to the layout.voidMember function that will be invoked by an XNetInterface implementation to forward an XNet message from the layout.voidnotifyTimeout(XNetMessage msg) Member function invoked by an XNetInterface implementation to notify a sender that an outgoing message timed out and was dropped from the queue.
-
Constructor Details
-
XNetHeartBeat
-
-
Method Details
-
dispose
-
message
Member function that will be invoked by an XNetInterface implementation to forward an XNet message from the layout.- Specified by:
messagein interfaceXNetListener- Parameters:
msg- The received XNet message. Note that this same object may be presented to multiple users. It should not be modified here.
-
message
Member function that will be invoked by an XNetInterface implementation to forward an XNet message sent to the layout. Normally, this function will do nothing.- Specified by:
messagein interfaceXNetListener- Parameters:
msg- The received XNet message. Note that this same object may be presented to multiple users. It should not be modified here.
-
notifyTimeout
Member function invoked by an XNetInterface implementation to notify a sender that an outgoing message timed out and was dropped from the queue.- Specified by:
notifyTimeoutin interfaceXNetListener- Parameters:
msg- message which has timed out.
-