Class WriterCacheManager.Empty
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.WriterCacheManager
-
- org.apache.jackrabbit.oak.segment.WriterCacheManager.Empty
-
- Enclosing class:
- WriterCacheManager
public static class WriterCacheManager.Empty extends WriterCacheManager
This implementation ofWriterCacheManager
returns empty caches of size 0.- See Also:
INSTANCE
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jackrabbit.oak.segment.WriterCacheManager
WriterCacheManager.Default, WriterCacheManager.Empty
-
-
Field Summary
Fields Modifier and Type Field Description static WriterCacheManager
INSTANCE
Singleton instance ofWriterCacheManager.Empty
-
Fields inherited from class org.apache.jackrabbit.oak.segment.WriterCacheManager
DEFAULT_NODE_CACHE_SIZE, DEFAULT_STRING_CACHE_SIZE, DEFAULT_TEMPLATE_CACHE_SIZE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Cache<String,RecordId>
getNodeCache(int generation)
@NotNull RecordCache<String>
getStringCache(int generation)
@NotNull RecordCache<Template>
getTemplateCache(int generation)
-
Methods inherited from class org.apache.jackrabbit.oak.segment.WriterCacheManager
getNodeCacheOccupancyInfo, getNodeCacheStats, getStringCacheStats, getTemplateCacheStats, withAccessTracking
-
-
-
-
Field Detail
-
INSTANCE
public static final WriterCacheManager INSTANCE
Singleton instance ofWriterCacheManager.Empty
-
-
Method Detail
-
getStringCache
@NotNull public @NotNull RecordCache<String> getStringCache(int generation)
- Specified by:
getStringCache
in classWriterCacheManager
- Returns:
- empty cache of size 0
-
getTemplateCache
@NotNull public @NotNull RecordCache<Template> getTemplateCache(int generation)
- Specified by:
getTemplateCache
in classWriterCacheManager
- Returns:
- empty cache of size 0
-
getNodeCache
@NotNull public @NotNull Cache<String,RecordId> getNodeCache(int generation)
- Specified by:
getNodeCache
in classWriterCacheManager
- Returns:
- a
Cache
cache that is always empty
-
-