|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MemoryCache
| Nested Class Summary | |
|---|---|
static interface |
MemoryCache.CacheListener
Provides the interface for cache clients to be notified of key events. |
| Method Summary | |
|---|---|
boolean |
add(Object key,
Cacheable clientObject)
Attempts to add the Cacheable object referenced by the key. |
boolean |
add(Object key,
Object clientObject,
long objectSize)
Attempts to add the object clientObject, with size objectSize and referred to by
key to the cache. |
void |
addCacheListener(MemoryCache.CacheListener listener)
Adds a new cacheListener, which will be sent notification whenever an entry is removed from the
cache. |
void |
clear()
Empties the cache. |
boolean |
contains(Object key)
Discovers whether or not this cache contains the object referenced by key. |
long |
getCapacity()
Retrieves the maximum size of the cache in bytes. |
long |
getFreeCapacity()
Retrieves the available space for storing new items. |
Set<Object> |
getKeySet()
retrieve an unordered Set of the keys of the objects in this MemoryCache. |
long |
getLowWater()
Retrieves the low water value of the MemoryCache. |
String |
getName()
|
int |
getNumObjects()
Retrieve the number of items stored in the MemoryCache. |
Object |
getObject(Object key)
Retrieves the requested item from the cache. |
long |
getUsedCapacity()
Retrieves the amount of used MemoryCache space. |
void |
remove(Object key)
Remove an object from the MemoryCache referenced by key. |
void |
removeCacheListener(MemoryCache.CacheListener listener)
Removes a CacheListener, notifications of events will no longer be sent to this listener. |
void |
setCapacity(long capacity)
Sets the maximum capacity for this cache in bytes. |
void |
setLowWater(long loWater)
Sets the new low water capacity value for this MemoryCache. |
void |
setName(String name)
|
| Method Detail |
|---|
boolean add(Object key,
Cacheable clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject)
Cacheable object referenced by the key. No explicit size value bsp;clientObject