public abstract class AbstractLifecycleComponent extends AbstractComponent implements LifecycleComponent
| Modifier and Type | Field and Description |
|---|---|
protected Lifecycle |
lifecycle |
deprecationLogger, logger, settings| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLifecycleComponent(Settings settings) |
protected |
AbstractLifecycleComponent(Settings settings,
java.lang.Class customClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLifecycleListener(LifecycleListener listener) |
void |
close() |
protected abstract void |
doClose() |
protected abstract void |
doStart() |
protected abstract void |
doStop() |
Lifecycle.State |
lifecycleState() |
void |
removeLifecycleListener(LifecycleListener listener) |
void |
start() |
void |
stop() |
logDeprecatedSetting, logRemovedSetting, nodeNameprotected final Lifecycle lifecycle
protected AbstractLifecycleComponent(Settings settings)
protected AbstractLifecycleComponent(Settings settings, java.lang.Class customClass)
public Lifecycle.State lifecycleState()
lifecycleState in interface LifecycleComponentpublic void addLifecycleListener(LifecycleListener listener)
addLifecycleListener in interface LifecycleComponentpublic void removeLifecycleListener(LifecycleListener listener)
removeLifecycleListener in interface LifecycleComponentpublic void start()
start in interface LifecycleComponentprotected abstract void doStart()
public void stop()
stop in interface LifecycleComponentprotected abstract void doStop()
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface Releasableprotected abstract void doClose()