public abstract class AbstractStatefulLifecycle extends Object implements StatefulLifecycle, EventPublisherAware
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractStatefulLifecycle.StopException
An exception, which if thrown by doStart will immediately stop the component
|
| 构造器和说明 |
|---|
AbstractStatefulLifecycle() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addEventListener(EventListener listener) |
protected void |
doStart()
Method to override to start the lifecycle
|
protected void |
doStop()
Method to override to stop the lifecycle
|
EventPublisher |
getEventPublisher() |
State |
getState() |
static State |
getState(StatefulLifecycle lc) |
boolean |
isFailed() |
boolean |
isRunning() |
boolean |
isStarted() |
boolean |
isStarting() |
boolean |
isStopped() |
boolean |
isStopping() |
void |
removeEventListener(EventListener listener) |
void |
setEventPublisher(EventPublisher publisher) |
void |
shutdown() |
void |
startup() |
String |
toString() |
protected void doStart()
throws Exception
AbstractStatefulLifecycle.StopException - If thrown, the lifecycle will immediately be stopped.Exceptionprotected void doStop()
throws Exception
Exceptionpublic EventPublisher getEventPublisher()
getEventPublisher 在接口中 EventPublisherAwarepublic void setEventPublisher(EventPublisher publisher)
setEventPublisher 在接口中 EventPublisherAwarepublic boolean isRunning()
isRunning 在接口中 StatefulLifecyclepublic boolean isStarted()
isStarted 在接口中 StatefulLifecycleStatefulLifecycle.isStarting()public boolean isStarting()
isStarting 在接口中 StatefulLifecycleStatefulLifecycle.isStarted()public boolean isStopping()
isStopping 在接口中 StatefulLifecycleStatefulLifecycle.isStopped()public boolean isStopped()
isStopped 在接口中 StatefulLifecycleStatefulLifecycle.isStopping()public boolean isFailed()
isFailed 在接口中 StatefulLifecyclepublic void addEventListener(EventListener listener)
addEventListener 在接口中 StatefulLifecyclepublic void removeEventListener(EventListener listener)
removeEventListener 在接口中 StatefulLifecyclepublic State getState()
public static State getState(StatefulLifecycle lc)
Copyright © 2022. All rights reserved.