public void makeStop() { this.stoped = true; stlog.info("makestop thread " + this.getServiceName()); }
public void shutdown() { this.shutdown(false); }
public void stop() { this.stop(false); }
public void shutdown(final boolean interrupt) { this.stoped = true; stlog.info("shutdown thread " + this.getServiceName() + " interrupt " + interrupt); synchronized (this) { if (!this.hasNotified) { this.hasNotified = true; this.notify(); } } try { if (interrupt) { this.thread.interrupt(); } long beginTime = System.currentTimeMillis(); this.thread.join(this.getJointime()); long eclipseTime = System.currentTimeMillis() - beginTime; stlog.info("join thread " + this.getServiceName() + " eclipse time(ms) " + eclipseTime + " " + this.getJointime()); } catch (InterruptedException e) { e.printStackTrace(); } }
public void shutdown(final boolean interrupt) { this.stoped = true; stlog.info("shutdown thread " + this.getServiceName() + " interrupt " + interrupt); synchronized (this) { if (!this.hasNotified) { this.hasNotified = true; this.notify(); } } try { if (interrupt) { this.thread.interrupt(); } long beginTime = System.currentTimeMillis(); this.thread.join(this.getJointime()); long eclipseTime = System.currentTimeMillis() - beginTime; stlog.info("join thread " + this.getServiceName() + " eclipse time(ms) " + eclipseTime + " " + this.getJointime()); } catch (InterruptedException e) { e.printStackTrace(); } }
public void shutdown(final boolean interrupt) { this.stoped = true; stlog.info("shutdown thread " + this.getServiceName() + " interrupt " + interrupt); synchronized (this) { if (!this.hasNotified) { this.hasNotified = true; this.notify(); } } try { if (interrupt) { this.thread.interrupt(); } long beginTime = System.currentTimeMillis(); this.thread.join(this.getJointime()); long eclipseTime = System.currentTimeMillis() - beginTime; stlog.info("join thread " + this.getServiceName() + " eclipse time(ms) " + eclipseTime + " " + this.getJointime()); } catch (InterruptedException e) { e.printStackTrace(); } }
public void makeStop() { this.stoped = true; stlog.info("makestop thread " + this.getServiceName()); }
public void stop() { this.stop(false); }
public void shutdown() { this.shutdown(false); }
public ServiceThread() { this.thread = new Thread(this, this.getServiceName()); }
public void stop() { this.stop(false); }
public void shutdown() { this.shutdown(false); }
public ServiceThread() { this.thread = new Thread(this, this.getServiceName()); }
public void makeStop() { this.stoped = true; stlog.info("makestop thread " + this.getServiceName()); }
public ServiceThread() { this.thread = new Thread(this, this.getServiceName()); }
public void stop(final boolean interrupt) { this.stoped = true; stlog.info("stop thread " + this.getServiceName() + " interrupt " + interrupt); synchronized (this) { if (!this.hasNotified) { this.hasNotified = true; this.notify(); } } if (interrupt) { this.thread.interrupt(); } }
public void stop(final boolean interrupt) { this.stoped = true; stlog.info("stop thread " + this.getServiceName() + " interrupt " + interrupt); synchronized (this) { if (!this.hasNotified) { this.hasNotified = true; this.notify(); } } if (interrupt) { this.thread.interrupt(); } }