public interface TaskWrapper extends Runnable
Modifier and Type | Method and Description |
---|---|
void |
acceptTask()
The task has been accepted
|
long |
getTaskCompletionTimeout()
The time before the task must be completed
|
int |
getTaskPriority()
The priority of the task
|
long |
getTaskStartTimeout()
The time before the task must be accepted
|
int |
getTaskWaitType()
Get the type of wait
|
boolean |
isComplete()
Is the task complete.
|
void |
rejectTask(RuntimeException e)
The task has been rejected
|
void |
stopTask()
Invoked by the threadpool when it wants to stop the task
|
void |
waitForTask()
Wait according the wait type
|
int getTaskWaitType()
int getTaskPriority()
long getTaskStartTimeout()
long getTaskCompletionTimeout()
void waitForTask()
void stopTask()
void acceptTask()
void rejectTask(RuntimeException e)
e
- any error associated with the rejectionboolean isComplete()
Copyright © 2018 JBoss by Red Hat. All rights reserved.