Class MonitoredThread
java.lang.Object
java.lang.Thread
org.eclipse.net4j.util.concurrent.MonitoredThread
- All Implemented Interfaces:
Runnable
- Since:
- 2.0
- Author:
- Eike Stepper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfaceNested classes/interfaces inherited from class Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiddoRun()longvoidbooleanisIdleTimeoutExpired(long idleTimeOut) voidrun()voidshutdown()Methods 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
-
Constructor Details
-
MonitoredThread
-
-
Method Details
-
getTimeStamp
public long getTimeStamp() -
isIdleTimeoutExpired
public boolean isIdleTimeoutExpired(long idleTimeOut) -
heartBeat
public void heartBeat() -
shutdown
public void shutdown() -
run
-
doRun
-