org.apache.chemistry.opencmis.client.runtime.cache
Class CacheImpl
java.lang.Object
org.apache.chemistry.opencmis.client.runtime.cache.CacheImpl
- All Implemented Interfaces:
- java.io.Serializable, Cache
public class CacheImpl
- extends java.lang.Object
- implements Cache
Synchronized cache implementation. The cache is limited to a specific size of
entries and works in a LRU mode.
- See Also:
- Serialized Form
Constructor Summary |
CacheImpl()
Default constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheImpl
public CacheImpl()
- Default constructor.
initialize
public void initialize(Session session,
java.util.Map<java.lang.String,java.lang.String> parameters)
- Specified by:
initialize
in interface Cache
clear
public void clear()
- Specified by:
clear
in interface Cache
containsId
public boolean containsId(java.lang.String objectId,
java.lang.String cacheKey)
- Specified by:
containsId
in interface Cache
containsPath
public boolean containsPath(java.lang.String path,
java.lang.String cacheKey)
- Specified by:
containsPath
in interface Cache
getById
public CmisObject getById(java.lang.String objectId,
java.lang.String cacheKey)
- Specified by:
getById
in interface Cache
getByPath
public CmisObject getByPath(java.lang.String path,
java.lang.String cacheKey)
- Specified by:
getByPath
in interface Cache
put
public void put(CmisObject object,
java.lang.String cacheKey)
- Specified by:
put
in interface Cache
putPath
public void putPath(java.lang.String path,
CmisObject object,
java.lang.String cacheKey)
- Specified by:
putPath
in interface Cache
remove
public void remove(java.lang.String objectId)
- Specified by:
remove
in interface Cache
getCacheSize
public int getCacheSize()
- Specified by:
getCacheSize
in interface Cache
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.