org.nuxeo.ecm.directory
Class DirectoryCache
java.lang.Object
org.nuxeo.ecm.directory.DirectoryCache
public class DirectoryCache
- extends java.lang.Object
Very simple cache system to cache directory entry lookups (not search
queries).
Beware that this cache is not transaction aware (which is not a problem for
LDAP directories anyway).
If we want to implement a smarter caching strategy we might prefer to base it
on jboss-cache instead of reinventing the wheel.
- Author:
- Olivier Grisel
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryCache
public DirectoryCache()
getEntry
public DocumentModel getEntry(java.lang.String entryId,
EntrySource source)
throws DirectoryException
- Throws:
DirectoryException
getEntry
public DocumentModel getEntry(java.lang.String entryId,
EntrySource source,
boolean fetchReferences)
throws DirectoryException
- Throws:
DirectoryException
invalidate
public void invalidate(java.util.List<java.lang.String> entryIds)
invalidate
public void invalidate(java.lang.String... entryIds)
invalidateAll
public void invalidateAll()
setTimeout
public void setTimeout(int timeout)
setMaxSize
public void setMaxSize(int maxSize)
Copyright © 2010 Nuxeo SAS. All Rights Reserved.