/** * {@inheritDoc} */ public final void stop() { if (!isStarted()) return; try { onStop(); } catch (RuntimeException ex) { addError("on stop: " + ex, ex); } started = false; }
/** * {@inheritDoc} */ public final void start() { if (isStarted()) return; if (getContext() == null) { throw new IllegalStateException("context not set"); } if (shouldStart()) { getContext().getScheduledExecutorService().execute(getRunnableTask()); started = true; } }
/** * {@inheritDoc} */ public final void stop() { if (!isStarted()) return; try { onStop(); } catch (RuntimeException ex) { addError("on stop: " + ex, ex); } started = false; }
/** * {@inheritDoc} */ public final void start() { if (isStarted()) return; if (getContext() == null) { throw new IllegalStateException("context not set"); } if (shouldStart()) { getContext().getExecutorService().execute(getRunnableTask()); started = true; } }
/** * {@inheritDoc} */ public final void stop() { if (!isStarted()) return; try { onStop(); } catch (RuntimeException ex) { addError("on stop: " + ex, ex); } started = false; }
/** * {@inheritDoc} */ public final void stop() { if (!isStarted()) return; try { onStop(); } catch (RuntimeException ex) { addError("on stop: " + ex, ex); } started = false; }
/** * {@inheritDoc} */ public final void stop() { if (!isStarted()) return; try { onStop(); } catch (RuntimeException ex) { addError("on stop: " + ex, ex); } started = false; }
/** * {@inheritDoc} */ public final void stop() { if (!isStarted()) return; try { onStop(); } catch (RuntimeException ex) { addError("on stop: " + ex, ex); } started = false; }
/** * {@inheritDoc} */ public final void start() { if (isStarted()) return; if (getContext() == null) { throw new IllegalStateException("context not set"); } if (shouldStart()) { getContext().getScheduledExecutorService().execute(getRunnableTask()); started = true; } }
/** * {@inheritDoc} */ public final void start() { if (isStarted()) return; if (getContext() == null) { throw new IllegalStateException("context not set"); } if (shouldStart()) { getContext().getScheduledExecutorService().execute(getRunnableTask()); started = true; } }
/** * {@inheritDoc} */ public final void start() { if (isStarted()) return; if (getContext() == null) { throw new IllegalStateException("context not set"); } if (shouldStart()) { getContext().getScheduledExecutorService().execute(getRunnableTask()); started = true; } }
/** * {@inheritDoc} */ public final void start() { if (isStarted()) return; if (getContext() == null) { throw new IllegalStateException("context not set"); } if (shouldStart()) { getContext().getScheduledExecutorService().execute(getRunnableTask()); started = true; } }