Interface MsgEventListener

All Known Implementing Classes:
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MsgEventListener
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.
Andrew Pavlin, KA2DDO
  • 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.
      type - MsgEventType identifying the type of event
      ss - StationState of the station reporting the event, or null if not related to a station or object
      msg - AX25Message of a decoded packet if the event is associated with a packet, null otherwise
      text - String text associated with the event, or null
      otherParam - Object of some other type associated with the event, or null