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

com.netflix.evcache.metrics.Stats Maven / Gradle / Ivy

There is a newer version: 5.21.0
Show newest version
package com.netflix.evcache.metrics;

import com.netflix.evcache.EVCache.Call;

public interface Stats {
    /**
     * This notifies the counter that a call was successfully completed and took
     * duration milliseconds to complete it.
     * 
     * @param operation
     *            - The EVCache.Call that was completed
     * @param duration
     *            - The time in milliseconds it took to complete the call.
     */
    void operationCompleted(Call operation, long duration);

    /**
     * A call to the counter indicating that there was cache Hit
     */
    void cacheHit(Call call);

    /**
     * A call to the counter indicating that there was cache Miss
     */
    void cacheMiss(Call call);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy