public abstract class AbstractLifecycleComponent<T> extends AbstractComponent implements LifecycleComponent<T>
| Modifier and Type | Field and Description |
|---|---|
protected Lifecycle |
lifecycle |
deprecationLogger, logger, settings| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLifecycleComponent(Settings settings) |
protected |
AbstractLifecycleComponent(Settings settings,
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) |
T |
start() |
T |
stop() |
logDeprecatedSetting, logRemovedSetting, nodeNameprotected final Lifecycle lifecycle
protected AbstractLifecycleComponent(Settings settings)
public Lifecycle.State lifecycleState()
lifecycleState in interface LifecycleComponent<T>public void addLifecycleListener(LifecycleListener listener)
addLifecycleListener in interface LifecycleComponent<T>public void removeLifecycleListener(LifecycleListener listener)
removeLifecycleListener in interface LifecycleComponent<T>public T start()
start in interface LifecycleComponent<T>protected abstract void doStart()
public T stop()
stop in interface LifecycleComponent<T>protected abstract void doStop()
public void close()
close in interface AutoCloseableclose in interface Releasableprotected abstract void doClose()
Copyright © 2009–2016. All rights reserved.