public class DirectoryCache extends Object
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.
Modifier and Type | Method and Description |
---|---|
DocumentModel |
getEntry(String entryId,
EntrySource source) |
DocumentModel |
getEntry(String entryId,
EntrySource source,
boolean fetchReferences) |
void |
invalidate(List<String> entryIds) |
void |
invalidate(String... entryIds) |
void |
invalidateAll() |
void |
setMaxSize(int maxSize) |
void |
setTimeout(int timeout) |
public DocumentModel getEntry(String entryId, EntrySource source) throws DirectoryException
DirectoryException
public DocumentModel getEntry(String entryId, EntrySource source, boolean fetchReferences) throws DirectoryException
DirectoryException
public void invalidate(String... entryIds)
public void invalidateAll()
public void setTimeout(int timeout)
public void setMaxSize(int maxSize)
Copyright © 2013 Nuxeo SA. All Rights Reserved.