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

io.quarkus.redis.runtime.client.ObservableRedisMetrics Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
package io.quarkus.redis.runtime.client;

public interface ObservableRedisMetrics {

    /**
     * Method called by the {@link ObservableRedis} after every operation.
     *
     * @param name the client name
     * @param durationInNs the duration of the operation in ns, it can represent the execution of a single command or
     *        a batch.
     * @param succeeded whether the operation succeeded
     */
    void report(String name, long durationInNs, boolean succeeded);

    ObservableRedisMetrics NOOP = new ObservableRedisMetrics() {
        @Override
        public void report(String name, long durationInNs, boolean succeeded) {

        }
    };

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy