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