Package org.ka2ddo.yaac.ax25
Interface MsgEventListener
- All Known Implementing Classes:
DefaultSoundMaker
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Implementers of this interface can be notified when a message event is detected
inside YAAC. Implementations must not block or take excessive amounts of CPU time
(no more than 5 milliseconds per call), as the calls are made from real-time code
inside the YAAC packet processing code; if longer time is needed, the data and work
should be dispatched to another thread to finish the processing.
- Author:
- Andrew Pavlin, KA2DDO
-
Method Summary
Modifier and TypeMethodDescriptionvoid
msgEventHappened
(MsgEventType type, StationState ss, AX25Message msg, String text, Object otherParam) Called when YAAC detects an event of interest to the listener.
-
Method Details
-
msgEventHappened
void msgEventHappened(MsgEventType type, StationState ss, AX25Message msg, String text, Object otherParam) Called when YAAC detects an event of interest to the listener.- Parameters:
type
- MsgEventType identifying the type of eventss
- StationState of the station reporting the event, or null if not related to a station or objectmsg
- AX25Message of a decoded packet if the event is associated with a packet, null otherwisetext
- String text associated with the event, or nullotherParam
- Object of some other type associated with the event, or null
-