Interface ConnectionHealthMonitor.HealthCheckCallback
- Enclosing class:
ConnectionHealthMonitor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for health check callbacks.
Implementations receive notification when a connection's health status changes.
- Version:
- 1.0
- Author:
- ConnectionHealthMonitor Implementation
-
Method Summary
Modifier and TypeMethodDescriptionvoidonHealthStatusChange(String connectionId, ConnectionHealthMonitor.HealthStatus oldStatus, ConnectionHealthMonitor.HealthStatus newStatus, ConnectionHealthMonitor.ConnectionHealth health) Invoked when connection health changes.
-
Method Details
-
onHealthStatusChange
void onHealthStatusChange(String connectionId, ConnectionHealthMonitor.HealthStatus oldStatus, ConnectionHealthMonitor.HealthStatus newStatus, ConnectionHealthMonitor.ConnectionHealth health) Invoked when connection health changes.- Parameters:
connectionId- the connection identifieroldStatus- the previous health statusnewStatus- the new health statushealth- complete health information
-