/** * Release any link to the source of events and stop the layout proces. The * thread will end after this method has been called. */ public void release() { pumpPipe.unregisterFromSource(); pumpPipe.removeSink(layout); pumpPipe = null; loop = false; if (Thread.currentThread() != this) { try { this.join(); } catch (Exception e) { logger.log(Level.WARNING, "Unable to stop/release layout.", e); } } layout = null; }
/** * Release any link to the source of events and stop the layout proces. The * thread will end after this method has been called. */ public void release() { pumpPipe.unregisterFromSource(); pumpPipe.removeSink(layout); pumpPipe = null; loop = false; if (Thread.currentThread() != this) { try { this.join(); } catch (Exception e) { logger.log(Level.WARNING, "Unable to stop/release layout.", e); } } layout = null; }