All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.smallrye.health.runtime.SmallRyeIndividualHealthGroupHandler Maven / Gradle / Ivy

There is a newer version: 3.17.0.CR1
Show newest version
package io.quarkus.smallrye.health.runtime;

import io.smallrye.health.SmallRyeHealth;
import io.smallrye.health.SmallRyeHealthReporter;
import io.smallrye.mutiny.Uni;
import io.vertx.ext.web.RoutingContext;

public class SmallRyeIndividualHealthGroupHandler extends SmallRyeHealthHandlerBase {

    @Override
    protected Uni getHealth(SmallRyeHealthReporter reporter, RoutingContext ctx) {
        String group = ctx.normalizedPath().substring(ctx.normalizedPath().lastIndexOf("/") + 1);
        return reporter.getHealthGroupAsync(group);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy