public interface Interruptible
Interruptible is an interface implemented by classes
that will be used as arguments on the methodsdoInterruptible() of
AsynchronouslyInterruptedException and its subclasses.
doInterruptible() invokes the implementations of the
methods in this interface.| Modifier and Type | Method and Description |
|---|---|
void |
interruptAction(AsynchronouslyInterruptedException exception)
This method is called by the system when the
run() method
is interrupted. |
void |
run(AsynchronouslyInterruptedException exception)
The main piece of code that is executed when an implementation
is given to
doInterruptible(). |
void run(AsynchronouslyInterruptedException exception) throws AsynchronouslyInterruptedException
doInterruptible().
When a class is created that implements this
interface, for example through an anonymous inner class,
it must include the throws clause
to make the method interruptible.exception - The AIE object whose doInterruptible method is
calling the run method. Used to invoke methods on
AsynchronouslyInterruptedException from
within the run() method.AsynchronouslyInterruptedExceptionvoid interruptAction(AsynchronouslyInterruptedException exception)
run() method
is interrupted. By using this, the program logic can determine
when the run() method completed normally or had its control
asynchronously transferred to its caller.exception - The currently pending AIE. Used to invoke methods on
AsynchronouslyInterruptedException from
within the interruptAction() method.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2021 aicas GmbH. All Rights Reserved.