public interface Lifecycle
|Modifier and Type||Method and Description|
Adds the given listener to the set of listeners managed by this Lifecycle implementation.
Removes the given listener from the set of listeners managed by this Lifecycle implementation, returning
void addListener(LifecycleListener listener)
void removeListener(LifecycleListener listener)
trueif the listener was removed successfully, and
This is an optimization only, there is no guarantee that every added listener will eventually be removed.