public abstract class AbstractLifecycle extends java.lang.Object implements Lifecycle
构造器和说明 |
---|
AbstractLifecycle() |
限定符和类型 | 方法和说明 |
---|---|
protected abstract void |
executeStart() |
protected abstract void |
executeStop() |
boolean |
isRunning()
状态判断
|
Lifecycle |
once(LifecycleEvent event,
LifecycleListener listener)
添加监听
|
void |
start()
启动
|
void |
stop()
关闭
|
protected abstract void executeStart()
protected abstract void executeStop()
public final Lifecycle once(LifecycleEvent event, LifecycleListener listener)
Lifecycle