public class ClientEventNotifier
extends java.lang.Thread
This queue-driven daemon thread ensures that long-lasting event-handling logic does not block the networking threads receiving those events.
| Constructor and Description |
|---|
ClientEventNotifier(Client c)
Constructs a new ClientEventNotifier bound to a specific Client.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ConnectionEvent e)
Adds a network connection event to the processing queue.
|
void |
add(DBManServerEvent e)
Adds a server status event to the processing queue.
|
void |
add(DBManServerHealthEvent e)
Adds a health event to the processing queue.
|
boolean |
isStopme() |
void |
kill()
Instructs the thread to stop processing gracefully.
|
void |
run()
Continuously polls the event queue and routes parsed events back to the main client's
lifecycle hooks.
|
void |
setStopme(boolean $4) |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic ClientEventNotifier(Client c)
c - The parent client instance.public void kill()
public void add(DBManServerHealthEvent e)
public void add(DBManServerEvent e)
public void add(ConnectionEvent e)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic boolean isStopme()
public void setStopme(boolean $4)
Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.