ApplicationStartup.
The lifecycle of a StartupStep goes as follows:
the application startup
and is assigned a unique id.
Tags during processing
end() of the step
Implementations can track the "execution time" or other metrics for steps.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | StartupStep.Tag
Simple key/value association for storing step metadata. |
| public static interface | StartupStep.Tags
Immutable collection of |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public long | |
| public String | |
| public Long | |
| public StartupStep. | |
| public StartupStep | |
| public StartupStep |
| end | back to summary |
|---|---|
| public void end() Record the state of the step and possibly other metrics like execution time. Once ended, changes on the step state are not allowed. | |
| getId | back to summary |
|---|---|
| public long getId() Return the unique id for this step within the application startup. | |
| getName | back to summary |
|---|---|
| public String getName() Return the name of the startup step. A step name describes the current action or phase. This technical name should be "." namespaced and can be reused to describe other instances of similar steps during application startup. | |
| getParentId | back to summary |
|---|---|
| public Long getParentId() Return, if available, the id of the parent step. The parent step is the step that was started the most recently when the current step was created.
| |
| getTags | back to summary |
|---|---|
| public StartupStep. Return the | |
| tag | back to summary |
|---|---|
| public StartupStep tag(String key, String value) Add a | |
| tag | back to summary |
|---|---|
| public StartupStep tag(String key, Supplier<String> value) Add a | |
| getKey | back to summary |
|---|---|
| public String getKey() Return the | |
| getValue | back to summary |
|---|---|
| public String getValue() Return the | |
Tag.