@Override public boolean isInterrupted() { return processorFactory.isInterrupted(); }
/** * Requests all workers to terminate when processing is finished. The method * blocks until all workers have been stopped. If interrupted while blocked, * this method can be called again in order to complete the termination * request. * * @throws InterruptedException * if interrupted during waiting for finish request */ public synchronized void finish() throws InterruptedException { termination = true; waitWorkers(); if (!isInterrupted()) { processorFactory.finish(); } }
/** * Requests all workers to terminate when processing is finished. The method * blocks until all workers have been stopped. If interrupted while blocked, * this method can be called again in order to complete the termination * request. * * @throws InterruptedException * if interrupted during waiting for finish request */ public synchronized void finish() throws InterruptedException { termination = true; waitWorkers(); if (!isInterrupted()) { processorFactory.finish(); } }
@Override public boolean isInterrupted() { return processorFactory.isInterrupted(); }
/** * Requests all workers to terminate when processing is finished. The method * blocks until all workers have been stopped. If interrupted while blocked, * this method can be called again in order to complete the termination * request. * * @throws InterruptedException * if interrupted during waiting for finish request */ public synchronized void finish() throws InterruptedException { termination = true; waitWorkers(); if (!isInterrupted()) { processorFactory.finish(); } }
@Override public boolean isInterrupted() { return processorFactory.isInterrupted(); }