public interface StartupListener
inform(StartupMode, boolean)
is called with the startup mode and whether the startup is already finished.
If the startup is not finished at point of registration, the startupFinished(StartupMode)
method will be called, after the inform method has been called once the startup is finished.
If the startup is not finished, the startupProgress(float)
method might be called
to indicate the current startup progress. This method should only be used for informational
purposes.
A listener waiting for the startup to finish, should act on both actions: a call
of the inform method with the second argument set to true or a call of the startupFinished
method. Whatever is called first can be used as indication.Modifier and Type | Method and Description |
---|---|
void |
inform(StartupMode mode,
boolean finished)
Informs the listener upon registration about the current state.
|
void |
startupFinished(StartupMode mode)
Notify finished startup.
|
void |
startupProgress(float ratio)
Notify startup progress
|
void inform(StartupMode mode, boolean finished)
mode
- The startup modefinished
- Whether the startup is already finished or notvoid startupFinished(StartupMode mode)
The
- startup modevoid startupProgress(float ratio)
ratio
- The current ratioCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.