Modifier and Type | Field and Description |
---|---|
protected boolean |
hasNotified |
protected boolean |
stoped |
protected Thread |
thread |
Constructor and Description |
---|
ServiceThread() |
Modifier and Type | Method and Description |
---|---|
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() |
protected final Thread thread
protected volatile boolean hasNotified
protected volatile boolean stoped
public abstract String getServiceName()
public void start()
public void shutdown()
public void stop()
public void makeStop()
public void stop(boolean interrupt)
public void shutdown(boolean interrupt)
public void wakeup()
protected void waitForRunning(long interval)
protected void onWaitEnd()
public boolean isStoped()
public long getJointime()
Copyright © 2014. All Rights Reserved.