Class RefreshEndpoint
java.lang.Object
io.micronaut.management.endpoint.refresh.RefreshEndpoint
Exposes an Endpoint
to refresh application state via a RefreshEvent
.
- Since:
- 1.0
- Author:
- Graeme Rocher
- See Also:
-
Constructor Summary
ConstructorDescriptionRefreshEndpoint
(Environment environment, ApplicationEventPublisher<RefreshEvent> eventPublisher) -
Method Summary
-
Constructor Details
-
RefreshEndpoint
public RefreshEndpoint(Environment environment, ApplicationEventPublisher<RefreshEvent> eventPublisher) - Parameters:
environment
- The EnvironmenteventPublisher
- The Application event publisher
-
-
Method Details
-
refresh
Refresh application state only if environment has changed (unlessforce
is set to true).- Parameters:
force
-Nullable
body property to indicate whether to force allRefreshable
beans to be refreshed- Returns:
- array of change keys if applicable
-