@Endpoint(value="refresh") public class RefreshEndpoint extends Object
Exposes an Endpoint to refresh application state via a RefreshEvent.
RefreshScope,
RefreshEvent,
Refreshable| Constructor and Description |
|---|
RefreshEndpoint(Environment environment,
ApplicationEventPublisher eventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
refresh(Boolean force)
Refresh application state only if environment has changed (unless
force is set to true). |
public RefreshEndpoint(Environment environment, ApplicationEventPublisher eventPublisher)
environment - The EnvironmenteventPublisher - The Application event publiser@Write public String[] refresh(@Nullable Boolean force)
force is set to true).force - Nullable body property to indicate whether to force all Refreshable beans to be refreshed