com.alibaba.rocketmq.remoting.common
类 ServiceThread
java.lang.Object
com.alibaba.rocketmq.remoting.common.ServiceThread
- 所有已实现的接口:
- Runnable
public abstract class ServiceThread
- extends Object
- implements Runnable
后台服务线程基类
- 从以下版本开始:
- 2013-7-13
- 作者:
- shijia.wxr
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
thread
protected final Thread thread
hasNotified
protected volatile boolean hasNotified
stoped
protected volatile boolean stoped
ServiceThread
public ServiceThread()
getServiceName
public abstract String getServiceName()
start
public void start()
shutdown
public void shutdown()
stop
public void stop()
makeStop
public void makeStop()
stop
public void stop(boolean interrupt)
shutdown
public void shutdown(boolean interrupt)
wakeup
public void wakeup()
waitForRunning
protected void waitForRunning(long interval)
onWaitEnd
protected void onWaitEnd()
isStoped
public boolean isStoped()
getJointime
public long getJointime()
Copyright © 2012-2015. All Rights Reserved.