Merge branch '3.1.x'

Closes gh-38226
This commit is contained in:
Moritz Halbritter
2023-11-06 10:27:50 +01:00
3 changed files with 23 additions and 24 deletions

View File

@@ -27,12 +27,12 @@ public class MyReadinessStateExporter {
@EventListener
public void onStateChange(AvailabilityChangeEvent<ReadinessState> event) {
switch (event.getState()) {
case ACCEPTING_TRAFFIC:
case ACCEPTING_TRAFFIC -> {
// create file /tmp/healthy
break;
case REFUSING_TRAFFIC:
}
case REFUSING_TRAFFIC -> {
// remove file /tmp/healthy
break;
}
}
}