public interface ServerStatusListener
The default implementation for the methods does nothing, you only need to implement the ones you wish to listen.
| Modifier and Type | Method and Description |
|---|---|
default void |
onShutdown(UaClient client,
long secondsTillShutdown,
LocalizedText shutdownReason)
A notification of a server shutdown.
|
default void |
onStateChange(UaClient client,
ServerState oldState,
ServerState newState)
A notification of the change in the server state.
|
default void |
onStatusChange(UaClient client,
ServerStatusDataType status,
StatusCode errorCode)
A notification of a new server status.
|
default void onShutdown(UaClient client, long secondsTillShutdown, LocalizedText shutdownReason)
client - the client object that is connected to the server.secondsTillShutdown - number of seconds to the expected shutdown.shutdownReason - the reason for the shutdown as reported by the server.default void onStateChange(UaClient client, ServerState oldState, ServerState newState)
client - the client object that is connected to the server.oldState - the previous ServerState (Unknown, if it was not available)newState - the new ServerState (Unknown, if it was not available)default void onStatusChange(UaClient client, ServerStatusDataType status, StatusCode errorCode)
client - the client object that is connected to the server.status - the new status. If null, errorCode provides the reason for failure.errorCode - StatusCode of the status.Copyright © 2026. All rights reserved.