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
FieldsModifier and TypeFieldDescriptionprotected Cacheprotected Stringprotected Cacheprotected Stringprotected final io.dropwizard.metrics5.Counterprotected final io.dropwizard.metrics5.Counterprotected final io.dropwizard.metrics5.Counterprotected final Stringprotected booleanprotected final io.dropwizard.metrics5.Counterprotected final io.dropwizard.metrics5.MetricRegistryprotected final io.dropwizard.metrics5.Counter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CacheServicegetEntry(String entryId, EntrySource source) getEntry(String entryId, EntrySource source, boolean fetchReferences) voidinvalidate(String... entryIds) voidinvalidate(List<String> entryIds) voidprotected booleanvoidsetEntryCacheName(String entryCacheName) voidsetEntryCacheWithoutReferencesName(String entryCacheWithoutReferencesName) voidsetNegativeCaching(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
-