public class SoftMapCache extends Object
| Constructor and Description |
|---|
SoftMapCache(boolean synched)
Creates a new soft cache.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the cache.
|
void |
doHouseKeeping()
Triggers some house-keeping, i.e.
|
Object |
get(Object key)
Returns the value associated with the given key.
|
void |
put(Object key,
Object value)
Put a new value in the cache overwriting any existing value with the same key.
|
Object |
remove(Object key)
Removed the value associated with the given key.
|
public SoftMapCache(boolean synched)
synched - true if the Map containing the values should by synchronizedpublic Object get(Object key)
key - the keypublic Object remove(Object key)
key - the keypublic void put(Object key, Object value)
key - The keyvalue - the valuepublic void clear()
public void doHouseKeeping()
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.