Package org.jboss.threads
Interface InterruptHandler
-
public interface InterruptHandlerA thread interrupt handler. Called when a thread'sinterrupt()method is invoked. The handler should not throw an exception; otherwise user code might end up in an unexpected state.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandleInterrupt(Thread thread)Handle an interrupt condition on the given thread.
-
-
-
Method Detail
-
handleInterrupt
void handleInterrupt(Thread thread)
Handle an interrupt condition on the given thread. This method should not throw an exception.- Parameters:
thread- the thread which was interrupted
-
-