Package com.biglybt.core.util
Class ThreadPool.threadPoolWorker
java.lang.Object
com.biglybt.core.util.AEThread2
com.biglybt.core.util.ThreadPool.threadPoolWorker
- All Implemented Interfaces:
ThreadPoolTask.Worker
- Enclosing class:
ThreadPool<T extends AERunnable>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.biglybt.core.util.AEThread2
AEThread2.threadWrapper -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate Tprivate Stringprivate intprivate final StringFields inherited from class com.biglybt.core.util.AEThread2
TRACE_TIMES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ThreadPool<T> getOwner()protected TlonggetState()voidreleaseManual(ThreadPoolTask task) voidrun()voidMethods inherited from class com.biglybt.core.util.AEThread2
createAndStartDaemon, createAndStartDaemon2, getName, interrupt, isAlive, isCurrentThread, isOurThread, join, setName, setOurThread, setOurThread, setPriority, start, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.biglybt.core.util.ThreadPoolTask.Worker
interrupt
-
Field Details
-
worker_name
-
runnable
-
run_start_time
private long run_start_time -
warn_count
private int warn_count -
state
-
-
Constructor Details
-
threadPoolWorker
protected threadPoolWorker()
-
-
Method Details
-
getOwner
-
run
public void run() -
getStartTime
public long getStartTime()- Specified by:
getStartTimein interfaceThreadPoolTask.Worker
-
setState
- Specified by:
setStatein interfaceThreadPoolTask.Worker
-
getState
- Specified by:
getStatein interfaceThreadPoolTask.Worker
-
getWorkerName
- Specified by:
getWorkerNamein interfaceThreadPoolTask.Worker
-
releaseManual
- Specified by:
releaseManualin interfaceThreadPoolTask.Worker
-
getRunnable
-