Class MultiThreadRunner.RunThread
java.lang.Object
java.lang.Thread
tech.riemann.nif.utils.thread.MultiThreadRunner.RunThread
- All Implemented Interfaces:
Runnable
- Enclosing class:
MultiThreadRunner
执行线程类,继承自Thread
用于执行具体的作业任务,包含线程索引、总线程数、作业运行器和可选的CountDownLatch
当线程执行完成时,如果设置了CountDownLatch,则会调用countDown()方法
- Author:
- Kerbores(kerbores@riemann.tech)
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class 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
-
RunThread
public RunThread()
-
-
Method Details
-
run
-