Package org.yamcs.client
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 voidconnected()Called after a successful connection to Yamcs has been established.voidconnecting()Called right before the initial connection to Yamcs is being made.voidconnectionFailed(ClientException exception)Called when the initial connection to Yamcs has failed, e.g. the maximum number of retry attempts has exceeded.voiddisconnected()Called when the connection to Yamcs is closed.default voidlog(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(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
-
-