public interface AccessorOrchestrator extends Nameable
invokeCallback(Runnable)
method). It promises that all such callback functions are mutually
atomic.
This interface extends Nameable so that error reporting is more complete.
FIXME: MoreModifier and Type | Method and Description |
---|---|
void |
clearInterval(java.lang.Object timer)
Clear the interval with the specified handle, if it
has not already executed.
|
void |
clearTimeout(java.lang.Object timer)
Clear the timeout with the specified handle, if it
has not already executed.
|
void |
error(java.lang.String message)
Report an error.
|
void |
invokeCallback(java.lang.Runnable function)
Invoke the specified function as soon as possible, but after any currently
executing or other pending callbacks have completed.
|
void |
log(java.lang.String message)
Print a message.
|
java.lang.Object |
setInterval(java.lang.Runnable function,
long milliseconds)
Invoke the specified function after the specified amount of time and again
at multiples of that time.
|
java.lang.Object |
setTimeout(java.lang.Runnable function,
long milliseconds)
Invoke the specified function after the specified amount of time.
|
void |
wrapup()
Cancel all pending callbacks and stop responding to future
callbacks.
|
description, getContainer, getDisplayName, getFullName, getName, getName, setName
void clearInterval(java.lang.Object timer) throws IllegalActionException
timer
- The timeout handle.IllegalActionException
- If the handle is invalid.setTimeout(Runnable, long)
,
setInterval(Runnable, long)
void clearTimeout(java.lang.Object timer) throws IllegalActionException
timer
- The timeout handle.IllegalActionException
- If the handle is invalid.setTimeout(Runnable, long)
,
setInterval(Runnable, long)
void invokeCallback(java.lang.Runnable function) throws IllegalActionException
function
- The function to invoke.IllegalActionException
- If the request cannot be honored.void error(java.lang.String message)
message
- The error message.void log(java.lang.String message)
message
- The message to be printed.java.lang.Object setInterval(java.lang.Runnable function, long milliseconds) throws IllegalActionException
function
- The function to invoke.milliseconds
- The number of milliseconds in the future to first invoke it.IllegalActionException
- If the director cannot respect the request.clearTimeout(Object)
java.lang.Object setTimeout(java.lang.Runnable function, long milliseconds) throws IllegalActionException
function
- The function to invoke.milliseconds
- The number of milliseconds in the future to invoke it.IllegalActionException
- If the director cannot respect the request.clearTimeout(Object)
void wrapup() throws IllegalActionException
IllegalActionException
- If there is a problem wrapping up.