2.17.2: 2011-06-17

net.sf.basedb.core.signal
Interface InterruptHandler

All Known Implementing Classes:
EnhancedThreadSignalHandler, ExceptionInterruptHandler

public interface InterruptHandler

An interface for handling thread interrupts. A handler is responsible for taking some kind of action when a thread has been interrupted via Thread.interrupt(). Handlers are registered with ThreadSignalHandler.setInterruptHandler(InterruptHandler) and are invoked from ThreadSignalHandler.checkInterrupted() when the currently running thread has been interrupted.

Note to BASE developers! Long running operations inside the BASE core or utilities should call ThreadSignalHandler.checkInterrupted() at regular intervals to make sure that operations can be interrupted.

Since:
2.16
Author:
Nicklas
Last modified
$Date: 2010-09-10 13:09:05 +0200 (Fri, 10 Sep 2010) $

Method Summary
 void handleInterrupt()
          This method is called when the worker thread has been interrupted by some other thread.
 

Method Detail

handleInterrupt

void handleInterrupt()
This method is called when the worker thread has been interrupted by some other thread.


2.17.2: 2011-06-17