Package one.nio.server
Class CleanupThread
- java.lang.Object
-
- java.lang.Thread
-
- one.nio.os.BatchThread
-
- one.nio.server.CleanupThread
-
- All Implemented Interfaces:
Runnable
public class CleanupThread extends BatchThread
-
-
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
Constructors Constructor Description CleanupThread(SelectorThread[] selectors, long keepAlive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetKeepAlive()voidrun()voidsetKeepAlive(long keepAlive)voidshutdown()voidupdate(SelectorThread[] selectors, long keepAlive)-
Methods inherited from class one.nio.os.BatchThread
adjustPriority
-
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
-
CleanupThread
public CleanupThread(SelectorThread[] selectors, long keepAlive)
-
-
Method Detail
-
shutdown
public void shutdown()
-
getKeepAlive
public long getKeepAlive()
-
setKeepAlive
public void setKeepAlive(long keepAlive)
-
update
public void update(SelectorThread[] selectors, long keepAlive)
-
run
public void run()
- Specified by:
runin interfaceRunnable- Overrides:
runin classBatchThread
-
-