Top Description Fields Methods
org.springframework.core.metrics

public Interface ApplicationStartup

Known Direct Implementers
org.springframework.core.metrics.DefaultApplicationStartup, org.springframework.core.metrics.jfr.FlightRecorderApplicationStartup

Instruments the application startup phase using steps.

The core container and its infrastructure components can use the ApplicationStartup to mark steps during the application startup and collect data about the execution context or their processing time.

Author
Brian Clozel
Since
5.3

Field Summary

Modifier and TypeField and Description
public static final ApplicationStartup
DEFAULT

Default "no op" ApplicationStartup implementation.

Method Summary

Modifier and TypeMethod and Description
public StartupStep
start(String
the step name
name
)

Create a new step and marks its beginning.

Field Detail

DEFAULTback to summary
public static final ApplicationStartup DEFAULT

Default "no op" ApplicationStartup implementation.

This variant is designed for minimal overhead and does not record data.

Method Detail

startback to summary
public StartupStep start(String name)

Create a new step and marks its beginning.

A step name describes the current action or phase. This technical name should be "." namespaced and can be reused to describe other instances of the same step during application startup.

Parameters
name:String

the step name