Class SocketServerThread
java.lang.Object
java.lang.Thread
com.aoindustries.aoserv.daemon.util.SocketServerThread
- All Implemented Interfaces:
Runnable
Handles incoming connections on one
ServerSocket
.- Author:
- AO Industries, Inc.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ModifierConstructorDescriptionprotected
SocketServerThread
(String name, InetAddress ipAddress, int port) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
close()
int
getPort()
void
run()
protected abstract void
socketConnected
(Socket socket) 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
-
Constructor Details
-
SocketServerThread
-
-
Method Details
-
getIpAddress
-
getPort
public int getPort() -
run
public void run() -
close
public final void close() -
socketConnected
- Throws:
IOException
-