public interface TaskConfiguration
JPPFExecutorService and that is not a Task instance.
These properties include:
onTimeout() methodonCancel() method| Modifier and Type | Method and Description |
|---|---|
org.jppf.client.taskwrapper.JPPFTaskCallback<Object> |
getOnCancelCallback()
Get the delegate for the
onCancel() method. |
org.jppf.client.taskwrapper.JPPFTaskCallback<Object> |
getOnTimeoutCallback()
Get the delegate for the
onTimeout() method. |
org.jppf.scheduling.JPPFSchedule |
getTimeoutSchedule()
Get the timeout set on the task.
|
TaskConfiguration |
setOnCancelCallback(org.jppf.client.taskwrapper.JPPFTaskCallback<Object> cancelCallback)
Set the delegate for the
onCancel() method. |
TaskConfiguration |
setOnTimeoutCallback(org.jppf.client.taskwrapper.JPPFTaskCallback<Object> timeoutCallback)
Set the delegate for the
onTimeout() method. |
TaskConfiguration |
setTimeoutSchedule(org.jppf.scheduling.JPPFSchedule timeoutSchedule)
Set the timeout set on the task.
|
org.jppf.client.taskwrapper.JPPFTaskCallback<Object> getOnCancelCallback()
onCancel() method.JPPFTaskCallback instance.TaskConfiguration setOnCancelCallback(org.jppf.client.taskwrapper.JPPFTaskCallback<Object> cancelCallback)
onCancel() method.cancelCallback - a JPPFTaskCallback instance.org.jppf.client.taskwrapper.JPPFTaskCallback<Object> getOnTimeoutCallback()
onTimeout() method.JPPFTaskCallback instance.TaskConfiguration setOnTimeoutCallback(org.jppf.client.taskwrapper.JPPFTaskCallback<Object> timeoutCallback)
onTimeout() method.timeoutCallback - a JPPFTaskCallback instance.org.jppf.scheduling.JPPFSchedule getTimeoutSchedule()
JPPFSchedule instance, or null if no timeout was set.TaskConfiguration setTimeoutSchedule(org.jppf.scheduling.JPPFSchedule timeoutSchedule)
timeoutSchedule - a JPPFSchedule instance.Copyright © 2005-2019 JPPF Team.