| Modifier and Type | Field and Description |
|---|---|
| private final BiConsumer | |
| private final IWorker |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(IWorker<T>
the object to be compared. o)Implements java. |
| protected void | done()
Overrides java. isDone (whether normally or via cancellation).
|
| public int | |
| public List | |
| public long | |
| public void | run()
Overrides java. Implements java. |
| callback | back to summary |
|---|---|
| private final BiConsumer<IWorker<T>, Throwable> callback | |
| worker | back to summary |
|---|---|
| private final IWorker<T> worker | |
| TestNGFutureTask | back to summary |
|---|---|
| public TestNGFutureTask(IWorker<T> worker, BiConsumer<IWorker<T>, Throwable> callback) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(IWorker<T> o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| done | back to summary |
|---|---|
| protected void done() Overrides java. Doc from java. Protected method invoked when this task transitions to state
| |
| getPriority | back to summary |
|---|---|
| public int getPriority() Implements org.
| |
| getTasks | back to summary |
|---|---|
| public List Implements org.
| |
| getTimeOut | back to summary |
|---|---|
| public long getTimeOut() Implements org.
| |
| run | back to summary |
|---|---|
| public void run() Overrides java. Implements java. Doc from java. Runs this operation.
| |