Merge branch '2.6.x' into 2.7.x
Closes gh-31525
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -27,12 +27,12 @@ public class MyReadinessStateExporter {
|
||||
@EventListener
|
||||
public void onStateChange(AvailabilityChangeEvent<ReadinessState> event) {
|
||||
switch (event.getState()) {
|
||||
case ACCEPTING_TRAFFIC:
|
||||
// create file /tmp/healthy
|
||||
break;
|
||||
case REFUSING_TRAFFIC:
|
||||
// remove file /tmp/healthy
|
||||
break;
|
||||
case ACCEPTING_TRAFFIC:
|
||||
// create file /tmp/healthy
|
||||
break;
|
||||
case REFUSING_TRAFFIC:
|
||||
// remove file /tmp/healthy
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user