in geronimo-microprofile-reporter/src/main/java/org/apache/geronimo/microprofile/reporter/storage/plugins/health/HealthService.java [58:69]
private void updateHealthCheck(final CheckSnapshot healthCheckResponse) {
final String name = healthCheckResponse.getName();
InMemoryDatabase<CheckSnapshot> db = database.getChecks().get(name);
if (db == null) {
db = new InMemoryDatabase<>(database.getAlpha(), database.getBucketSize(), "check");
final InMemoryDatabase<CheckSnapshot> existing = database.getChecks().putIfAbsent(name, db);
if (existing != null) {
db = existing;
}
}
db.add(healthCheckResponse);
}