|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.client.bindings.cache.impl.CacheImpl
public class CacheImpl
Default cache implementation.
Constructor Summary | |
---|---|
CacheImpl()
Constructor. |
|
CacheImpl(java.lang.String name)
Constructor. |
Method Summary | |
---|---|
int |
check(java.lang.String... keys)
Checks if a given key is in the cache. |
java.lang.Object |
get(java.lang.String... keys)
Retrieves an object from the cache. |
void |
initialize(java.lang.String[] cacheLevelConfig)
Initializes the cache. |
void |
put(java.lang.Object value,
java.lang.String... keys)
Adds an object to the cache. |
void |
remove(java.lang.String... keys)
Removes a branch or leaf from the cache. |
java.lang.String |
toString()
|
void |
writeLock()
Applies a write lock. |
void |
writeUnlock()
Releases a write lock. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CacheImpl()
public CacheImpl(java.lang.String name)
Method Detail |
---|
public void initialize(java.lang.String[] cacheLevelConfig)
Cache
initialize
in interface Cache
cacheLevelConfig
- the level configuration strings from the root to the leafspublic java.lang.Object get(java.lang.String... keys)
Cache
get
in interface Cache
keys
- the keys
null if the branch or leaf doesn't exist
public void put(java.lang.Object value, java.lang.String... keys)
Cache
put
in interface Cache
value
- the objectkeys
- the keys for this objectpublic void remove(java.lang.String... keys)
Cache
remove
in interface Cache
keys
- the keys of the branch or leafpublic int check(java.lang.String... keys)
Cache
check
in interface Cache
keys
- the keys of the branch or leaf
keys.length
if the object is in the cachepublic void writeLock()
Cache
writeLock
in interface Cache
public void writeUnlock()
Cache
writeUnlock
in interface Cache
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |