public class DirectoryCache extends Object
Beware that this cache is not transaction aware (which is not a problem for LDAP directories anyway).
Modifier and Type | Field and Description |
---|---|
protected Cache |
entryCache |
protected String |
entryCacheName |
protected Cache |
entryCacheWithoutReferences |
protected String |
entryCacheWithoutReferencesName |
protected com.codahale.metrics.Counter |
hitsCounter |
protected com.codahale.metrics.Counter |
invalidationsCounter |
protected com.codahale.metrics.Counter |
maxCounter |
protected com.codahale.metrics.MetricRegistry |
metrics |
protected String |
name |
protected com.codahale.metrics.Counter |
sizeCounter |
Modifier | Constructor and Description |
---|---|
protected |
DirectoryCache(String name) |
Modifier and Type | Method and Description |
---|---|
DocumentModel |
getEntry(String entryId,
EntrySource source) |
DocumentModel |
getEntry(String entryId,
EntrySource source,
boolean fetchReferences) |
Cache |
getEntryCache() |
Cache |
getEntryCacheWithoutReferences() |
void |
invalidate(List<String> entryIds) |
void |
invalidate(String... entryIds) |
void |
invalidateAll() |
protected boolean |
isCacheEnabled() |
void |
setEntryCacheName(String entryCacheName) |
void |
setEntryCacheWithoutReferencesName(String entryCacheWithoutReferencesName) |
protected Cache entryCache
protected String entryCacheName
protected Cache entryCacheWithoutReferences
protected String entryCacheWithoutReferencesName
protected final com.codahale.metrics.MetricRegistry metrics
protected final com.codahale.metrics.Counter hitsCounter
protected final com.codahale.metrics.Counter invalidationsCounter
protected final com.codahale.metrics.Counter maxCounter
protected final com.codahale.metrics.Counter sizeCounter
protected DirectoryCache(String name)
protected boolean isCacheEnabled()
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(List<String> entryIds)
public void invalidate(String... entryIds)
public void invalidateAll()
public void setEntryCacheName(String entryCacheName)
public void setEntryCacheWithoutReferencesName(String entryCacheWithoutReferencesName)
public Cache getEntryCache()
public Cache getEntryCacheWithoutReferences()
Copyright © 2015 Nuxeo SA. All rights reserved.