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

字段摘要
protected  boolean hasNotified
           
protected  boolean stoped
           
protected  Thread thread
           
 
构造方法摘要
ServiceThread()
           
 
方法摘要
 long getJointime()
           
abstract  String getServiceName()
           
 boolean isStoped()
           
 void makeStop()
           
protected  void onWaitEnd()
           
 void shutdown()
           
 void shutdown(boolean interrupt)
           
 void start()
           
 void stop()
           
 void stop(boolean interrupt)
           
protected  void waitForRunning(long interval)
           
 void wakeup()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 java.lang.Runnable 继承的方法
run
 

字段详细信息

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.