Information. set Remove When Expired(boolean removeWhenExpired) 方法
Sets a value that indicates whether the report is removed from health store when it expires. If set to false, the report is treated as an error when expired. false by default.
Remarks:When clients report periodically, they should set RemoveWhenExpired false (default). This way, is the reporter has issues (eg. deadlock) and can't report, the entity is evaluated at error when the health report expires, and this will flag the entity as system.fabric.health.HealthState#Error. Periodic health clients should send reports with higher frequency than time to live to account for delays due to health client batching, message transport over the wire and health store processing.
public void setRemoveWhenExpired(boolean removeWhenExpired)
true if the report should be removed from health store when expired; otherwise, false.