@Test public void testMakeStop() { ServiceThread testServiceThread = startTestServiceThread(); testServiceThread.makeStop(); assertEquals(true, testServiceThread.isStopped()); }
public void makeStop() { if (!started.get()) { return; } this.stopped = true; log.info("makestop thread " + this.getServiceName()); }
ServiceThread implements Runnable { public void makeStop() { if (!started.get()) { return; } this.stopped = true; log.info("makestop thread " + this.getServiceName()); } }
ServiceThread implements Runnable { public void makeStop() { if (!started.get()) { return; } this.stopped = true; log.info("makestop thread " + this.getServiceName()); } ServiceThread(); }
ServiceThread implements Runnable { public void makeStop() { if (!started.get()) { return; } this.stopped = true; log.info("makestop thread " + this.getServiceName()); } ServiceThread(); abstract String getServiceName(); void start(); void shutdown(); void shutdown(final boolean interrupt); long getJointime(); @Deprecated void stop(); @Deprecated void stop(final boolean interrupt); void makeStop(); void wakeup(); boolean isStopped(); boolean isDaemon(); void setDaemon(boolean daemon); }
ServiceThread implements Runnable { public void makeStop() { if (!started.get()) { return; } this.stopped = true; log.info("makestop thread " + this.getServiceName()); } ServiceThread(); abstract String getServiceName(); void start(); void shutdown(); void shutdown(final boolean interrupt); long getJointime(); @Deprecated void stop(); @Deprecated void stop(final boolean interrupt); void makeStop(); void wakeup(); boolean isStopped(); boolean isDaemon(); void setDaemon(boolean daemon);  }