/** * Manages the thread lifecycle and can be overridden to customize if needed. */ public void run() { try { beforeRun(); executeRun(); } catch (OutOfMemoryError e) { OutOfMemoryErrorDispatcher.onOutOfMemory(e); } finally { afterRun(); } } }
/** * Manages the thread lifecycle and can be overridden to customize if needed. */ public void run() { try { beforeRun(); executeRun(); } catch (OutOfMemoryError e) { OutOfMemoryErrorDispatcher.onOutOfMemory(e); } finally { afterRun(); } } }