131132133134135136137138
nodesCache = createOffHeapCache(builder); }else{ nodesCache = builder.buildCache(builder.getDocumentCacheSize()); } cacheStats = new CacheStats(nodesCache, "Document-Documents", builder.getWeigher(), builder.getDocumentCacheSize()); }
264265266267268269270
this.connection = con; this.callStack = LOG.isDebugEnabled() ? new Exception("call stack of RDBDocumentStore creation") : null; this.nodesCache = builder.buildCache(builder.getDocumentCacheSize()); this.cacheStats = new CacheStats(nodesCache, "Document-Documents", builder.getWeigher(), builder.getDocumentCacheSize()); }
107108109110111112113114115116117
future.set(oldValue); return future; } }); cacheStats = new CacheStats(cache, "NodeStore", weigher, cacheSize); try { this.root = cache.get(kernel.getHeadRevision() + '/'); } catch (Exception e) { throw new RuntimeException(e);
60616263646566
// notification.getValue(); // } // }) .build(); cacheStats = new CacheStats(memoryCache, "Segment", Segment.WEIGHER, memoryCacheSize); }