Interface LifecycleListener


  • public interface LifecycleListener

    The listener interface for receiving updates when a Beat Link component is started or stopped.

    Classes that depend on something (like the DeviceFinder, VirtualCdj, or MetadataFinder) can implement this interface so they know to shut themselves down when the subsystem they are reliant upon has done so.

    Author:
    James Elliott
    • Method Detail

      • started

        void started​(LifecycleParticipant sender)
        Called when the subsystem has started up.
        Parameters:
        sender - the subsystem reporting this event, in case you want to use a single listener to hear from all of the components you depend on
      • stopped

        void stopped​(LifecycleParticipant sender)
        Called when the subsystem has shut down.
        Parameters:
        sender - the subsystem reporting this event, in case you want to use a single listener to hear from all of the components you depend on