Interface ConnectionListener

  • All Superinterfaces:
    EventListener

    public interface ConnectionListener
    extends EventListener
    A connection listener interface for clients connecting to Yamcs.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void connected()
      Called after a successful connection to Yamcs has been established.
      void connecting()
      Called right before the initial connection to Yamcs is being made.
      void connectionFailed​(Throwable cause)
      Called when the initial connection to Yamcs has failed, e.g. the maximum number of retry attempts has exceeded.
      void disconnected()
      Called when the connection to Yamcs is closed.
      default void log​(String message)
      Used to log messages.
    • Method Detail

      • connecting

        void connecting()
        Called right before the initial connection to Yamcs is being made.
      • connected

        void connected()
        Called after a successful connection to Yamcs has been established.
      • connectionFailed

        void connectionFailed​(Throwable cause)
        Called when the initial connection to Yamcs has failed, e.g. the maximum number of retry attempts has exceeded.
        Parameters:
        cause - Optional cause of the connection failure, may be null.
      • disconnected

        void disconnected()
        Called when the connection to Yamcs is closed.
      • log

        default void log​(String message)
        Used to log messages.
        Parameters:
        message - the messages to be logged