javax.realtime
Interface Interruptible


public interface Interruptible

This interface is used with AsynchronouslyInterruptedException.doInterruptible().

Since:
0.3.8
Author:
Morgan Deters
See Also:
AsynchronouslyInterruptedException.doInterruptible(Interruptible)

Method Summary
 void interruptAction(AsynchronouslyInterruptedException exception)
          This method is called by the system if the run() method is interrupted.
 void run(AsynchronouslyInterruptedException exception)
          The main logic executed when a call to doInterruptible() is made.
 

Method Detail

run

public void run(AsynchronouslyInterruptedException exception)
The main logic executed when a call to doInterruptible() is made. Make sure to include a proper throws clause when you implement this interface or your this method will not be interruptible.

Parameters:
exception - access to the AsynchronouslyInterruptedException so that callbacks can be made

interruptAction

public void interruptAction(AsynchronouslyInterruptedException exception)
This method is called by the system if the run() method is interrupted.

Parameters:
exception - access to the AsynchronouslyInterruptedException so that callbacks can be made


jRate is developed and maintained by the jRate project development team.
Copyright (c) 2001-2006 Angelo Corsaro and Morgan Deters.