Polish
See gh-20931
This commit is contained in:
committed by
Stephane Nicoll
parent
2ee73a6c83
commit
cb320288a4
@@ -236,10 +236,10 @@ For example, we can export the "Readiness" state of the application to a file so
|
||||
[source,java,indent=0]
|
||||
----
|
||||
@Component
|
||||
public class ReadinessStateExporter implements ApplicationListener<LivenessStateChangedEvent> {
|
||||
public class ReadinessStateExporter implements ApplicationListener<ReadinessStateChangedEvent> {
|
||||
|
||||
@Override
|
||||
public void onApplicationEvent(LivenessStateChangedEvent event) {
|
||||
public void onApplicationEvent(ReadinessStateChangedEvent event) {
|
||||
switch (event.getReadinessState().getStatus()) {
|
||||
case READY:
|
||||
// create file /tmp/healthy
|
||||
|
||||
Reference in New Issue
Block a user