Interface LauncherEvent
- All Known Implementing Classes:
LauncherEvent.AgentUpdated, LauncherEvent.ClientExited, LauncherEvent.ClientStarted, LauncherEvent.ClientStateChanged, LauncherEvent.DataUpdateApplied, LauncherEvent.DataUpdateAvailable, LauncherEvent.EventsDropped, LauncherEvent.LicenceChanged, LauncherEvent.ServiceLost, LauncherEvent.ServiceRestored, LauncherEvent.ServiceShuttingDown
public sealed interface LauncherEvent
permits LauncherEvent.ClientStarted, LauncherEvent.ClientStateChanged, LauncherEvent.ClientExited, LauncherEvent.AgentUpdated, LauncherEvent.DataUpdateAvailable, LauncherEvent.DataUpdateApplied, LauncherEvent.LicenceChanged, LauncherEvent.ServiceShuttingDown, LauncherEvent.ServiceLost, LauncherEvent.ServiceRestored, LauncherEvent.EventsDropped
Something the launcher service reported, or a change in the host's link to
it. Delivered through
ClientLauncher.onEvent(java.util.function.Consumer).
The first eight mirror the service's events. The last three are the
host's own: LauncherEvent.ServiceLost once per loss of the service,
LauncherEvent.ServiceRestored when it is back (never for the first connection), and
LauncherEvent.EventsDropped when events were missed. After either of the last two,
call ClientLauncher.clients() to see where things stand: missed events
are not replayed.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordThe launcher has a new agent; clients injected before it are now stale.static final recordA client's process exited.static final recordA client started: a launch reached its first record, or auto-restart replaced the process (thenLaunchedClient.restartOf()is set).static final recordA client's launch moved on.static enumWhere a data update is.static final recordA data update was applied.static final recordThe state of a data update changed.static final recordEvents were missed: the service's sequence skipped, or this listener fell too far behind.static enumWhy a client exited.static final recordThe licence link, or one client's licence, changed.static final recordThe host lost the service.static final recordThe host has the service again after aLauncherEvent.ServiceLost.static final recordThe service is shutting down.