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

io.quarkus.eureka.IsHealthEnabled Maven / Gradle / Ivy

The newest version!
package io.quarkus.eureka;

import io.quarkus.eureka.config.EurekaBuildTimeConfiguration;

import java.util.function.BooleanSupplier;

class IsHealthEnabled implements BooleanSupplier {

    private final EurekaBuildTimeConfiguration eurekaBuildTimeConfiguration;

    IsHealthEnabled(EurekaBuildTimeConfiguration eurekaBuildTimeConfiguration) {
        this.eurekaBuildTimeConfiguration = eurekaBuildTimeConfiguration;
    }

    @Override
    public boolean getAsBoolean() {
        return eurekaBuildTimeConfiguration.heartBeat().enabled();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy