Package org.testng.internal.thread.graph
Class GraphThreadPoolExecutor.PhoneyWorker
java.lang.Object
org.testng.internal.thread.graph.GraphThreadPoolExecutor.PhoneyWorker
- All Implemented Interfaces:
Comparable<IWorker<T>>,Runnable,IWorker<T>
- Enclosing class:
GraphThreadPoolExecutor<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.testng.thread.IWorker
completed, getCurrentThreadId, setThreadIdToRunOn
-
Field Details
-
threadId
private long threadId
-
-
Constructor Details
-
PhoneyWorker
public PhoneyWorker(long threadId)
-
-
Method Details
-
getTasks
-
getTimeOut
public long getTimeOut()- Specified by:
getTimeOutin interfaceIWorker<T>- Returns:
- the maximum time allowed for the worker to complete the task.
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceIWorker<T>- Returns:
- the priority of this task.
-
compareTo
- Specified by:
compareToin interfaceComparable<IWorker<T>>
-
run
public void run() -
getThreadIdToRunOn
public long getThreadIdToRunOn()- Specified by:
getThreadIdToRunOnin interfaceIWorker<T>
-