Rakesh API

org.rakeshv.utils
Interface Map.Statistics

All Known Implementing Classes:
LinkedHashMap.Statistics
Enclosing interface:
Map<K,V>

public static interface Map.Statistics

An interface that defines the methods that may be invoked to monitor cache usage.


Method Summary
 int getSuccessfulRequests()
          Returns the total number of successful requests for values from the cache based upon a key.
 int getTotalRemoved()
          Returns the total number of Map.Entry items that were evicted from the cache after it reached its maximum configured size.
 int getTotalRequests()
          Returns the total number of requests that have been made for values from the cache based upon a key.
 

Method Detail

getTotalRequests

int getTotalRequests()
Returns the total number of requests that have been made for values from the cache based upon a key.

Returns:
int The total number of requests.

getSuccessfulRequests

int getSuccessfulRequests()
Returns the total number of successful requests for values from the cache based upon a key.

Returns:
int The total number of successful requests.

getTotalRemoved

int getTotalRemoved()
Returns the total number of Map.Entry items that were evicted from the cache after it reached its maximum configured size. Note that this value does not track user triggered entry removals from the cache.

Returns:
int The total number of entries that have been removed from the cache.

Rakesh API

Copyright © 2002-2005 - Rakesh Vidyadharan