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 Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate static final org.slf4j.Loggerprivate SelectorThread[]Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongvoidrun()voidsetKeepAlive(long keepAlive) voidshutdown()voidupdate(SelectorThread[] selectors, long keepAlive) private longMethods inherited from class BatchThread
adjustPriorityMethods inherited from class Thread
activeCount, checkAccess, clone, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, threadId, toString, yield
-
Field Details
-
log
private static final org.slf4j.Logger log -
selectors
-
keepAlive
private volatile long keepAlive
-
-
Constructor Details
-
CleanupThread
-
-
Method Details
-
shutdown
public void shutdown() -
getKeepAlive
public long getKeepAlive() -
setKeepAlive
public void setKeepAlive(long keepAlive) -
update
-
waitKeepAlive
- Throws:
InterruptedException
-
run
public void run()- Specified by:
runin interfaceRunnable- Overrides:
runin classBatchThread
-