/** * Start the thread. * * @throws IllegalThreadStateException if the thread was already started. */ public void start() { super.start(); Messages.msg.tracef("Started thread \"%s\"", this); }
/** * Change the uncaught exception handler for this thread. * * @param eh the new handler */ public void setUncaughtExceptionHandler(final UncaughtExceptionHandler eh) { super.setUncaughtExceptionHandler(eh); Messages.msg.tracef("Changed uncaught exception handler for \"%s\" to %s", this, eh); }
private void doInterrupt() { if (isInterrupted()) return; Messages.msg.tracef("Interrupting thread \"%s\"", this); try { super.interrupt(); } finally { final InterruptHandler interruptHandler = this.interruptHandler; if (interruptHandler != null) { try { interruptHandler.handleInterrupt(this); } catch (Throwable t) { Messages.msg.interruptHandlerThrew(t, interruptHandler); } } } }
/** * Change the uncaught exception handler for this thread. * * @param eh the new handler */ public void setUncaughtExceptionHandler(final UncaughtExceptionHandler eh) { super.setUncaughtExceptionHandler(eh); Messages.msg.tracef("Changed uncaught exception handler for \"%s\" to %s", this, eh); }
/** * Start the thread. * * @throws IllegalThreadStateException if the thread was already started. */ public void start() { super.start(); Messages.msg.tracef("Started thread \"%s\"", this); }
/** * Change the uncaught exception handler for this thread. * * @param eh the new handler */ public void setUncaughtExceptionHandler(final UncaughtExceptionHandler eh) { super.setUncaughtExceptionHandler(eh); Messages.msg.tracef("Changed uncaught exception handler for \"%s\" to %s", this, eh); }
/** * Start the thread. * * @throws IllegalThreadStateException if the thread was already started. */ public void start() { super.start(); Messages.msg.tracef("Started thread \"%s\"", this); }
private void doInterrupt() { if (isInterrupted()) return; Messages.msg.tracef("Interrupting thread \"%s\"", this); try { super.interrupt(); } finally { final InterruptHandler interruptHandler = this.interruptHandler; if (interruptHandler != null) { try { interruptHandler.handleInterrupt(this); } catch (Throwable t) { Messages.msg.interruptHandlerThrew(t, interruptHandler); } } } }
private void doInterrupt() { if (isInterrupted()) return; Messages.msg.tracef("Interrupting thread \"%s\"", this); try { super.interrupt(); } finally { final InterruptHandler interruptHandler = this.interruptHandler; if (interruptHandler != null) { try { interruptHandler.handleInterrupt(this); } catch (Throwable t) { Messages.msg.interruptHandlerThrew(t, interruptHandler); } } } }