|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opendoors.cache.immutable.CacheImpl
Implements the updateable cache interface according to the immutable / mutable cache strategy of VFC.
| Field Summary | |
static int |
AccessCount
The total number of accesses to the cache. |
static int |
AccessFaultCount
The total number of access faults returning null. |
static int |
ImmutableHitCount
The total number of access hits to the immutable cache |
static int |
MutableHitCount
The total number of access hits to the mutable cache. |
| Method Summary | |
java.lang.Object |
get(java.lang.Object argument)
Gets a value from the immutable cache. |
long[] |
getMetrics()
Returns the metrics in the following order: |
void |
invalidate(java.lang.Object argument)
Invalidates an object in the cache by removing it from the mutable cache. |
void |
invalidateAll()
Invalidates the entire cache. |
java.lang.Object[] |
keys()
Returns the keys of the cache as an array. |
void |
put(java.lang.Object argument,
java.lang.Object value)
Puts an object into the cache by enqueueing it on the immutable cache using the change control delegate. |
void |
update()
Allows for the cache to be explicitly updated. |
java.lang.Object[] |
values()
Returns the elements in the cache as an array using the current image. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int AccessCount
public static final int ImmutableHitCount
public static final int MutableHitCount
public static final int AccessFaultCount
| Method Detail |
public java.lang.Object get(java.lang.Object argument)
Note: this implementation will also search the mutable cache if the element is not found in the mutable cache.
get in interface Cacheargument - The key to the element in the cache.public long[] getMetrics()
[0] The total number of gets, accesses. [1] The number of accesses which resulted in a hit to the immutable cache. [2] The number of accesses which resulted in a hit to the mutable cache. [3] The number of accesses which resulted in a fault and a need to regenerate the cache entry.
public java.lang.Object[] values()
values in interface Cachepublic java.lang.Object[] keys()
keys in interface Cachepublic void invalidate(java.lang.Object argument)
invalidate in interface Cacheargument - The key to the element in the cache.public void invalidateAll()
invalidateAll in interface Cache
public void put(java.lang.Object argument,
java.lang.Object value)
put in interface Cacheargument - The key to the element in the cache.value - The element to place into the cache.public void update()
update in interface UpdateableCache
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||