/** * {@inheritDoc} */ @Override public void shutdown() { synchronized (stateLock) { if (running) { running = false; poisonAll(); stateLock.notifyAll(); ProbeNotifier.notifyThreadPoolStopped(this); } } }
/** * {@inheritDoc} */ @Override public void shutdown() { synchronized (stateLock) { if (running) { running = false; poisonAll(); stateLock.notifyAll(); ProbeNotifier.notifyThreadPoolStopped(this); } } }
/** * {@inheritDoc} */ @Override public void shutdown() { synchronized (stateLock) { if (running) { running = false; poisonAll(); stateLock.notifyAll(); ProbeNotifier.notifyThreadPoolStopped(this); } } }
/** * {@inheritDoc} */ @Override public void shutdown() { synchronized (stateLock) { if (running) { running = false; poisonAll(); stateLock.notifyAll(); ProbeNotifier.notifyThreadPoolStopped(this); } } }
/** * {@inheritDoc} */ @Override public void shutdown() { synchronized (stateLock) { if (running) { running = false; poisonAll(); stateLock.notifyAll(); ProbeNotifier.notifyThreadPoolStopped(this); } } }
/** * {@inheritDoc} */ @Override public void shutdown() { synchronized (stateLock) { if (running) { running = false; poisonAll(); stateLock.notifyAll(); ProbeNotifier.notifyThreadPoolStopped(this); } } }
/** * {@inheritDoc} */ @Override public void shutdown() { synchronized (stateLock) { if (running) { running = false; poisonAll(); stateLock.notifyAll(); ProbeNotifier.notifyThreadPoolStopped(this); } } }
/** * {@inheritDoc} */ @Override public void shutdown() { synchronized (stateLock) { if (running) { running = false; poisonAll(); stateLock.notifyAll(); ProbeNotifier.notifyThreadPoolStopped(this); } } }
/** * {@inheritDoc} */ @Override public void shutdown() { synchronized (stateLock) { if (running) { running = false; poisonAll(); stateLock.notifyAll(); ProbeNotifier.notifyThreadPoolStopped(this); } } }
/** * {@inheritDoc} */ @Override public void shutdown() { synchronized (stateLock) { if (running) { running = false; poisonAll(); stateLock.notifyAll(); ProbeNotifier.notifyThreadPoolStopped(this); } } }
/** * {@inheritDoc} */ @Override public void shutdown() { synchronized (stateLock) { if (running) { running = false; poisonAll(); stateLock.notifyAll(); ProbeNotifier.notifyThreadPoolStopped(this); } } }
/** * {@inheritDoc} */ @Override public void shutdown() { synchronized (stateLock) { if (running) { running = false; poisonAll(); stateLock.notifyAll(); ProbeNotifier.notifyThreadPoolStopped(this); } } }
/** * {@inheritDoc} */ @Override public List<Runnable> shutdownNow() { synchronized (stateLock) { List<Runnable> drained = new ArrayList<Runnable>(); if (running) { running = false; drain(getQueue(), drained); for (Runnable task : drained) { onTaskDequeued(task); onTaskCancelled(task); } poisonAll(); //try to interrupt their current work so they can get their poison fast for (Worker w : workers.keySet()) { w.t.interrupt(); } ProbeNotifier.notifyThreadPoolStopped(this); } return drained; } }
/** * {@inheritDoc} */ @Override public List<Runnable> shutdownNow() { synchronized (stateLock) { List<Runnable> drained = new ArrayList<Runnable>(); if (running) { running = false; drain(getQueue(), drained); for (Runnable task : drained) { onTaskDequeued(task); onTaskCancelled(task); } poisonAll(); //try to interrupt their current work so they can get their poison fast for (Worker w : workers.keySet()) { w.t.interrupt(); } ProbeNotifier.notifyThreadPoolStopped(this); } return drained; } }
/** * {@inheritDoc} */ @Override public List<Runnable> shutdownNow() { synchronized (stateLock) { List<Runnable> drained = new ArrayList<Runnable>(); if (running) { running = false; drain(getQueue(), drained); for (Runnable task : drained) { onTaskDequeued(task); onTaskCancelled(task); } poisonAll(); //try to interrupt their current work so they can get their poison fast for (Worker w : workers.keySet()) { w.t.interrupt(); } ProbeNotifier.notifyThreadPoolStopped(this); } return drained; } }
/** * {@inheritDoc} */ @Override public List<Runnable> shutdownNow() { synchronized (stateLock) { List<Runnable> drained = new ArrayList<Runnable>(); if (running) { running = false; drain(getQueue(), drained); for (Runnable task : drained) { onTaskDequeued(task); onTaskCancelled(task); } poisonAll(); //try to interrupt their current work so they can get their poison fast for (Worker w : workers.keySet()) { w.t.interrupt(); } ProbeNotifier.notifyThreadPoolStopped(this); } return drained; } }
/** * {@inheritDoc} */ @Override public List<Runnable> shutdownNow() { synchronized (stateLock) { List<Runnable> drained = new ArrayList<Runnable>(); if (running) { running = false; drain(getQueue(), drained); for (Runnable task : drained) { onTaskDequeued(task); onTaskCancelled(task); } poisonAll(); //try to interrupt their current work so they can get their poison fast for (Worker w : workers.keySet()) { w.t.interrupt(); } ProbeNotifier.notifyThreadPoolStopped(this); } return drained; } }
/** * {@inheritDoc} */ @Override public List<Runnable> shutdownNow() { synchronized (stateLock) { List<Runnable> drained = new ArrayList<Runnable>(); if (running) { running = false; drain(getQueue(), drained); for (Runnable task : drained) { onTaskDequeued(task); onTaskCancelled(task); } poisonAll(); //try to interrupt their current work so they can get their poison fast for (Worker w : workers.keySet()) { w.t.interrupt(); } ProbeNotifier.notifyThreadPoolStopped(this); } return drained; } }
/** * {@inheritDoc} */ @Override public List<Runnable> shutdownNow() { synchronized (stateLock) { List<Runnable> drained = new ArrayList<Runnable>(); if (running) { running = false; drain(getQueue(), drained); for (Runnable task : drained) { onTaskDequeued(task); onTaskCancelled(task); } poisonAll(); //try to interrupt their current work so they can get their poison fast for (Worker w : workers.keySet()) { w.t.interrupt(); } ProbeNotifier.notifyThreadPoolStopped(this); } return drained; } }
/** * {@inheritDoc} */ @Override public List<Runnable> shutdownNow() { synchronized (stateLock) { List<Runnable> drained = new ArrayList<Runnable>(); if (running) { running = false; drain(getQueue(), drained); for (Runnable task : drained) { onTaskDequeued(task); onTaskCancelled(task); } poisonAll(); //try to interrupt their current work so they can get their poison fast for (Worker w : workers.keySet()) { w.t.interrupt(); } ProbeNotifier.notifyThreadPoolStopped(this); } return drained; } }