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

io.smallrye.faulttolerance.metrics.NoopProvider Maven / Gradle / Ivy

There is a newer version: 6.6.2
Show newest version
package io.smallrye.faulttolerance.metrics;

import jakarta.inject.Singleton;

import io.smallrye.faulttolerance.config.FaultToleranceOperation;
import io.smallrye.faulttolerance.core.metrics.MetricsRecorder;

@Singleton
public class NoopProvider implements MetricsProvider {
    @Override
    public boolean isEnabled() {
        return false;
    }

    @Override
    public MetricsRecorder create(FaultToleranceOperation operation) {
        return MetricsRecorder.NOOP;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy