|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interruptible
is an interface implemented by classes
that will be used as arguments on the doInterruptible()
of AsynchronouslyInterruptedException
and its
subclasses. doInterruptible()
invokes the implementation
of the method in this interface. Thus the system can ensure
correctness before invoking run()
and correctly
cleaned up after run()
returns.
Method Summary | |
void |
interruptAction(javax.realtime.AsynchronouslyInterruptedException exception)
This method is called by the system if the run() method
is excepted. |
void |
run(javax.realtime.AsynchronouslyInterruptedException exception)
The main piece of code that is executed when an implementation is given to doInterruptible() . |
Method Detail |
public void interruptAction(javax.realtime.AsynchronouslyInterruptedException exception)
run()
method
is excepted. Using this the program logic can determine if the
run()
method completed normally or had its control
asynchronously transferred to its caller.
exception
- Used to invoke methods on
AsynchronouslyInterruptedException
from
within the interruptAction()
method.public void run(javax.realtime.AsynchronouslyInterruptedException exception) throws AsynchronouslyInterruptedException
doInterruptible()
. When you create a class
that implements this interface (usually through an anonymous inner
class) you must remember to include the throws
clause
to make the method interruptible. If the throws clause is omitted
the run()
method will not be interruptible.
exception
- Used to invoke methods on
AsynchronouslyInterruptedException
from
within the interruptAction()
method.
AsynchronouslyInterruptedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |