public interface Interruptible
Interruptibleis an interface implemented by classes that will be used as arguments on the methods
AsynchronouslyInterruptedExceptionand its subclasses.
doInterruptible()invokes the implementations of the methods in this interface.
|Modifier and Type||Method and Description|
This method is called by the system when the
The main piece of code that is executed when an implementation is given to
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
throwsclause to make the method interruptible.
void 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
AsynchronouslyInterruptedExceptionfrom within the
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2021 aicas GmbH. All Rights Reserved.