Package org.nuxeo.ecm.directory
Class DirectoryCache
java.lang.Object
org.nuxeo.ecm.directory.DirectoryCache
Very simple cache system to cache directory entry lookups (not search queries) on top of nuxeo cache
Beware that this cache is not transaction aware (which is not a problem for LDAP directories anyway).
-
Field Summary
Modifier and TypeFieldDescriptionprotected Cache
protected String
protected Cache
protected String
protected final io.dropwizard.metrics5.Counter
protected final io.dropwizard.metrics5.Counter
protected final io.dropwizard.metrics5.Counter
protected final String
protected boolean
protected final io.dropwizard.metrics5.Counter
protected final io.dropwizard.metrics5.MetricRegistry
protected final io.dropwizard.metrics5.Counter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected CacheService
getEntry
(String entryId, EntrySource source) getEntry
(String entryId, EntrySource source, boolean fetchReferences) void
invalidate
(String... entryIds) void
invalidate
(List<String> entryIds) void
protected boolean
void
setEntryCacheName
(String entryCacheName) void
setEntryCacheWithoutReferencesName
(String entryCacheWithoutReferencesName) void
setNegativeCaching
(Boolean negativeCaching)
-
Field Details
-
name
-
entryCache
-
entryCacheName
-
entryCacheWithoutReferences
-
entryCacheWithoutReferencesName
-
negativeCaching
protected boolean negativeCaching -
registry
protected final io.dropwizard.metrics5.MetricRegistry registry -
hitsCounter
protected final io.dropwizard.metrics5.Counter hitsCounter -
negativeHitsCounter
protected final io.dropwizard.metrics5.Counter negativeHitsCounter -
missesCounter
protected final io.dropwizard.metrics5.Counter missesCounter -
invalidationsCounter
protected final io.dropwizard.metrics5.Counter invalidationsCounter -
sizeCounter
protected final io.dropwizard.metrics5.Counter sizeCounter
-
-
Constructor Details
-
DirectoryCache
-
-
Method Details
-
isCacheEnabled
protected boolean isCacheEnabled() -
getEntry
-
getEntry
-
invalidate
-
invalidate
-
invalidateAll
public void invalidateAll() -
setEntryCacheName
-
setEntryCacheWithoutReferencesName
-
setNegativeCaching
-
getEntryCache
-
getEntryCacheWithoutReferences
-
getCacheService
-