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.MetricRegistry |
metrics |
protected com.codahale.metrics.Counter |
missesCounter |
protected String |
name |
protected boolean |
negativeCaching |
protected com.codahale.metrics.Counter |
negativeHitsCounter |
protected com.codahale.metrics.Counter |
sizeCounter |
Modifier | Constructor and Description |
---|---|
protected |
DirectoryCache(String name) |
Modifier and Type | Method and Description |
---|---|
protected CacheService |
getCacheService() |
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) |
void |
setNegativeCaching(Boolean negativeCaching) |
protected Cache entryCache
protected String entryCacheName
protected Cache entryCacheWithoutReferences
protected String entryCacheWithoutReferencesName
protected boolean negativeCaching
protected final com.codahale.metrics.MetricRegistry metrics
protected final com.codahale.metrics.Counter hitsCounter
protected final com.codahale.metrics.Counter negativeHitsCounter
protected final com.codahale.metrics.Counter missesCounter
protected final com.codahale.metrics.Counter invalidationsCounter
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 void setNegativeCaching(Boolean negativeCaching)
public Cache getEntryCache()
public Cache getEntryCacheWithoutReferences()
protected CacheService getCacheService()
Copyright © 2018 Nuxeo. All rights reserved.