@Override public void run() { try { job_.run(); } catch (Throwable e) { setException(e); } synchronized (this) { if (--runsNo_ == 0) { notifyAll(); } } }
@Override public void run() { try { job_.run(); } catch (Throwable e) { setException(e); } synchronized (this) { if (--runsNo_ == 0) { notifyAll(); } } }
@Override public void run() { try { job_.run(); } catch (Throwable e) { setException(e); } synchronized (this) { if (--runsNo_ == 0) { notifyAll(); } } }
@Override public synchronized JobMonitor submit(Runnable job, int noInstances) { ThisJobMonitor result = new ThisJobMonitor(job, noInstances); for (int i = 0; i < noInstances; i++) { executor_.execute(result); } return result; }
@Override public synchronized JobMonitor submit(Runnable job, int noInstances) { ThisJobMonitor result = new ThisJobMonitor(job, noInstances); for (int i = 0; i < noInstances; i++) { executor_.execute(result); } return result; }
@Override public synchronized JobMonitor submit(Runnable job, int noInstances) { ThisJobMonitor result = new ThisJobMonitor(job, noInstances); for (int i = 0; i < noInstances; i++) { executor_.execute(result); } return result; }