|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITaskFunctionMonitor
Interface to monitor the presence of a task function, which is only available
as long as the providing task instance is running. Use
TaskFunctionMonitor to create a monitor for a task function retrieved
by the KUKA task manager.
TaskFunctionMonitor| Method Summary | |
|---|---|
void |
await()
Blocks and waits for an unspecified amount of time for the monitored function to become available, while being interruptible by Thread.interrupt(). |
void |
await(long timeout,
TimeUnit unit)
Blocks and waits for the given amount of time for the monitored function to become available, while being interruptible by Thread.interrupt(). |
boolean |
isAvailable()
Checks if the monitored task function is available at the moment. |
| Method Detail |
|---|
boolean isAvailable()
true if the task function is available,
false if not
void await()
throws InterruptedException
Thread.interrupt().
InterruptedException - if the thread was interrupted while waiting
void await(long timeout,
TimeUnit unit)
throws InterruptedException,
TimeoutException
Thread.interrupt().
timeout - the maximum time to waitunit - the time unit of the timeout argument
InterruptedException - if the thread was interrupted while waiting
TimeoutException - if the task function didn't become available before the time
to wait elapsed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||