com.kuka.task
Interface ITaskFunctionMonitor


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.

See Also:
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

isAvailable

boolean isAvailable()
Checks if the monitored task function is available at the moment.

Returns:
true if the task function is available, false if not

await

void await()
           throws InterruptedException
Blocks and waits for an unspecified amount of time for the monitored function to become available, while being interruptible by Thread.interrupt().

Throws:
InterruptedException - if the thread was interrupted while waiting

await

void await(long timeout,
           TimeUnit unit)
           throws InterruptedException,
                  TimeoutException
Blocks and waits for the given amount of time for the monitored function to become available, while being interruptible by Thread.interrupt().

Parameters:
timeout - the maximum time to wait
unit - the time unit of the timeout argument
Throws:
InterruptedException - if the thread was interrupted while waiting
TimeoutException - if the task function didn't become available before the time to wait elapsed


Copyright © 2019. All rights reserved.