public interface LifecycleManager extends LifecycleListener
LifecycleListener items.| Modifier and Type | Method and Description |
|---|---|
void |
addLifecycleListener(LifecycleListener lifecycleListener)
Add single life
LifecycleListener to the end of the
LifecycleListener listeners list. |
void |
setLifecycleListeners(List<LifecycleListener> lifecycleListeners)
Sets a
List of LifecycleListener listener items that
should be managed. |
shutdown, shutdownNowvoid addLifecycleListener(LifecycleListener lifecycleListener)
LifecycleListener to the end of the
LifecycleListener listeners list.lifecycleListener - LifecycleListener item to be added.void setLifecycleListeners(List<LifecycleListener> lifecycleListeners)
List of LifecycleListener listener items that
should be managed. The order that the items will be managed is the same as
they are passed. If there are already added items with
addLifecycleListener(LifecycleListener) they
are removed from the list.lifecycleListeners - list of LifecycleListener items.Copyright © 2022. All rights reserved.