PolicyHealthSnapshot
Point-in-time snapshot of policy state for health/readiness endpoints and metrics.
Use ResilientPolicy.getHealthSnapshot to build this. Expose it in your health endpoint (e.g. Kubernetes readiness/liveness, or a /health API) so load balancers and orchestrators can decide whether to route traffic.
This is a source-compatible addition. Trailing nullable fields with defaults ensure existing consumers compile without modification.
Constructors
Properties
Snapshot of bulkhead usage; null if no bulkhead was configured or the implementation does not support snapshot.
Snapshot of cache usage and hit rate; null if no cache was configured.
Snapshot of circuit breaker state and counters; null if no circuit breaker was configured.
Snapshot of rate limiter token state; null if no rate limiter was configured.
Snapshot of retry configuration; null if no retry was configured.