Interface ConnectionListener

  • All Superinterfaces:
    EventListener

    public interface ConnectionListener
    extends EventListener
    A connection listener interface for clients connecting to Yamcs.
    • 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​(ClientException exception)
        Called when the initial connection to Yamcs has failed, e.g. the maximum number of retry attempts has exceeded.
        Parameters:
        exception - 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