Package io.github.joealisson.mmocore
Class ConnectionHandler<T extends Client<Connection<T>>>
- java.lang.Object
-
- java.lang.Thread
-
- io.github.joealisson.mmocore.ConnectionHandler<T>
-
- All Implemented Interfaces:
java.lang.Runnable
public final class ConnectionHandler<T extends Client<Connection<T>>> extends java.lang.Thread
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()Start to listen connections.voidshutdown()Shutdown the connection listener, the thread pool and all associated resources.-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Method Detail
-
run
public void run()
Start to listen connections.- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
shutdown
public void shutdown()
Shutdown the connection listener, the thread pool and all associated resources. This method closes all established connections.
-
-