Package org.testng.internal.thread.graph
Class TestNGFutureTask<T>
- java.lang.Object
-
- java.util.concurrent.FutureTask<IWorker<T>>
-
- org.testng.internal.thread.graph.TestNGFutureTask<T>
-
-
Constructor Summary
Constructors Constructor Description TestNGFutureTask(IWorker<T> worker, java.util.function.BiConsumer<IWorker<T>,java.lang.Throwable> callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(IWorker<T> o)
protected void
done()
int
getPriority()
java.util.List<T>
getTasks()
long
getTimeOut()
void
run()
-
Methods inherited from class java.util.concurrent.FutureTask
cancel, get, get, isCancelled, isDone, runAndReset, set, setException, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.testng.thread.IWorker
completed, getCurrentThreadId, getThreadIdToRunOn, setThreadIdToRunOn
-
-
-
-
Method Detail
-
run
public void run()
-
getTasks
public java.util.List<T> getTasks()
-
getTimeOut
public long getTimeOut()
- Specified by:
getTimeOut
in interfaceIWorker<T>
- Returns:
- the maximum time allowed for the worker to complete the task.
-
getPriority
public int getPriority()
- Specified by:
getPriority
in interfaceIWorker<T>
- Returns:
- the priority of this task.
-
-