|
||||||||||
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.AbstractMapCacheLevel
public abstract class AbstractMapCacheLevel
Abstract Map cache.
Constructor Summary | |
---|---|
AbstractMapCacheLevel()
|
Method Summary | |
---|---|
protected void |
disableKeyFallback()
Disables the fallback key. |
protected void |
disableSingeValueFallback()
Disables the single value fallback. |
protected void |
enableKeyFallback(java.lang.String key)
Enables a fallback key if no value was found for a requested key. |
protected void |
enableSingeValueFallback()
Enables the single value fallback. |
java.lang.Object |
get(java.lang.String key)
Retrieves an object from the cache level. |
protected boolean |
getBooleanParameter(java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.String name,
boolean defValue)
Extracts a boolean parameter from the parameters. |
protected float |
getFloatParameter(java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.String name,
float defValue)
Extracts a float parameter from the parameters. |
protected int |
getIntParameter(java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.String name,
int defValue)
Extracts an integer parameter from the parameters. |
protected java.util.Map<java.lang.String,java.lang.Object> |
getMap()
Returns the internal map. |
abstract void |
initialize(java.util.Map<java.lang.String,java.lang.String> parameters)
Initialize the cache level. |
void |
put(java.lang.Object value,
java.lang.String key)
Adds an object to the cache level. |
void |
remove(java.lang.String key)
Removes an object from this cache level. |
protected void |
setMap(java.util.Map<java.lang.String,java.lang.Object> map)
Sets the internal map. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractMapCacheLevel()
Method Detail |
---|
public abstract void initialize(java.util.Map<java.lang.String,java.lang.String> parameters)
CacheLevel
initialize
in interface CacheLevel
parameters
- level parameterspublic java.lang.Object get(java.lang.String key)
CacheLevel
get
in interface CacheLevel
key
- the key at this cache level
null
if the object doesn't existpublic void put(java.lang.Object value, java.lang.String key)
CacheLevel
put
in interface CacheLevel
value
- the objectkey
- the key at this levelpublic void remove(java.lang.String key)
CacheLevel
remove
in interface CacheLevel
key
- the key at this cache levelprotected java.util.Map<java.lang.String,java.lang.Object> getMap()
protected void setMap(java.util.Map<java.lang.String,java.lang.Object> map)
protected void enableKeyFallback(java.lang.String key)
protected void disableKeyFallback()
protected void enableSingeValueFallback()
protected void disableSingeValueFallback()
protected int getIntParameter(java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String name, int defValue)
parameters
- the parameter mapname
- the parameter namedefValue
- the default value if the parameter can't be foundprotected float getFloatParameter(java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String name, float defValue)
parameters
- the parameter mapname
- the parameter namedefValue
- the default value if the parameter can't be foundprotected boolean getBooleanParameter(java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String name, boolean defValue)
parameters
- the parameter mapname
- the parameter namedefValue
- the default value if the parameter can't be foundpublic 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 |