Package org.atmosphere.metrics
Class AtmosphereHealth
java.lang.Object
org.atmosphere.metrics.AtmosphereHealth
Framework-level health check for Atmosphere.
Provides a snapshot of the framework's health status including active connections, broadcasters, and framework lifecycle state. Can be used by any health check system (Spring Actuator, MicroProfile Health, etc.).
Usage
AtmosphereHealth health = new AtmosphereHealth(framework);
Map<String, Object> status = health.check();
// { "status": "UP", "version": "4.0.0-SNAPSHOT", "connections": 42, ... }
- Since:
- 4.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AtmosphereHealth
-
-
Method Details
-
check
Perform a health check and return status details.- Returns:
- a map of health details
-
isHealthy
public boolean isHealthy()- Returns:
- true if the framework is running and healthy
-