com.ibm.commerce.registry
Interface ManagedDynamicCache

All Known Implementing Classes:
AbstractManagedDynamicCacheRegistry, LRUDynamicHashtable

public interface ManagedDynamicCache

This is the ManagedDynamicCache interface which defines the management methods for the dynamic cache.


Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
 
Method Summary
 int getCacheSize()
          Returns the total number of cache entries.
 long getEvictions()
          Returns the number of entries that have been removed from the cache by LRU algorithm.
 long getHits()
          Returns the number of cache hits.
 long getMisses()
          Returns the number of cache misses.
 int getUsedCacheSize()
          Returns the number of currently contained cache entries.
 void setInitialCapacity(int initialCapacity)           Sets the initial capacity of the registry.
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values
Method Detail

getMisses

public long getMisses()
Returns the number of cache misses.
Returns:
Number of cache misses.

getEvictions

public long getEvictions()
Returns the number of entries that have been removed from the cache by LRU algorithm.
Returns:
Number of entries that have been removed from the cache.

getHits

public long getHits()
Returns the number of cache hits.
Returns:
Number of cache hits.

getCacheSize

public int getCacheSize()
Returns the total number of cache entries.
Returns:
The maximum size of the cache.

getUsedCacheSize

public int getUsedCacheSize()
Returns the number of currently contained cache entries.
Returns:
Number of currently used cache entries.

setInitialCapacity

public void setInitialCapacity(int initialCapacity)
Sets the initial capacity of the registry.