Package arcommon.net
Class LineServerThread
- java.lang.Object
-
- java.lang.Thread
-
- arcommon.MyThread
-
- arcommon.net.LineServerThread
-
- All Implemented Interfaces:
java.lang.Runnable
public abstract class LineServerThread extends MyThread
-
-
Field Summary
-
Fields inherited from class arcommon.MyThread
DEFAULT_TIMEOUT
-
-
Constructor Summary
Constructors Constructor Description LineServerThread(int port)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()protected voiddoLoop()booleanisListening()protected abstract voidonClientConnect(LineConnection connection)protected abstract voidonStopListen()-
Methods inherited from class arcommon.MyThread
afterLoop, beforeLoop, blockUntilStopped, blockUntilStoppedWithTimeout, blockUntilStoppedWithTimeout, isRequestedToStop, requestToStop, run, setRequestedToStop
-
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 Detail
-
LineServerThread
public LineServerThread(int port)
-
-
Method Detail
-
onClientConnect
protected abstract void onClientConnect(LineConnection connection)
-
onStopListen
protected abstract void onStopListen()
-
isListening
public boolean isListening()
-
close
public void close()
-
-