org.castor.persist.cache.distributed
public class JCache extends AbstractBaseCache
Version: $Revision: 1.1 $ $Date: 2005/08/04 07:31:15 $
See Also: http://jcache.sourceforge.net http://www.jcp.org/en/jsr/detail?id=107
| Constructor Summary | |
|---|---|
| JCache()
Default constructor. | |
| Method Summary | |
|---|---|
| void | clear() |
| void | close() |
| boolean | contains(Object key)
Indicates whether the cache holds a value object for the specified key. |
| boolean | containsKey(Object key) |
| boolean | containsValue(Object value) |
| Enumeration | elements()
Returns an enumeration of the values in this LRU map.
|
| Set | entrySet() |
| Object | get(Object key)
Returns the value to which the specified key is mapped in this Map. |
| void | initialize()
Initializes this cache.
|
| boolean | isEmpty() |
| Set | keySet() |
| Object | put(Object key, Object value)
Maps the specified key to the specified
value in this Map. |
| void | putAll(Map aMap) |
| Object | remove(Object key)
Removes the key (and its corresponding value) from this
Map. |
| int | size() |
| Collection | values() |
See Also: clear
See Also: Cache
See Also: Cache
See Also: Cache
Returns: an enumeration of the values in this Map.
See Also: java.util.Enumeration
See Also: entrySet
Parameters: key - a key in the Map.
Returns: the value to which the key is mapped in this Map; null if the key is not mapped to any value in this Map.
Throws: CacheAcquireException
See Also: isEmpty
See Also: keySet
key to the specified
value in this Map. Neither the key nor the
value can be null.
The value can be retrieved by calling the get method
with a key that is equal to the original key.
Parameters: key the Map key. value the value.
Returns: the previous value of the specified key in this Map,
or null if it did not have one.
Throws: NullPointerException if the key or value is
null.
See Also: putAll
Parameters: key the key that needs to be removed.
Returns: the value to which the key had been mapped in this Map,
or null if the key did not have a mapping.
See Also: size
See Also: values