Code example for Supplier

Methods: get

0
        statsSupplier = Suppliers.memoizeWithExpiration(supplier, CACHE_TIME, TimeUnit.SECONDS);
    } 
 
    @com.netflix.servo.annotations.Monitor(name = "averageLoadPenalty", type = GAUGE) 
    double averageLoadPenalty() { 
        return statsSupplier.get().averageLoadPenalty();
    } 
 
    @com.netflix.servo.annotations.Monitor(name = "evictionCount", type = COUNTER) 
    long evictionCount() { 
        return statsSupplier.get().evictionCount();
    } 
 
    @com.netflix.servo.annotations.Monitor(name = "hitCount", type = COUNTER) 
    long hitCount() { 
        return statsSupplier.get().hitCount();
    } 
 
    @com.netflix.servo.annotations.Monitor(name = "loadCount", type = COUNTER) 
    long loadCount() {