예제 #1
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected:
//ORIGINAL LINE: public static Condition numberOfEvictions(final org.neo4j.io.pagecache.monitoring.PageCacheCounters monitor, final long desiredNumberOfEvictions)
        public static Condition NumberOfEvictions(PageCacheCounters monitor, long desiredNumberOfEvictions)
        {
            return(() => monitor.Evictions() > desiredNumberOfEvictions);
        }
예제 #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: PageCacheImpl(org.neo4j.jmx.impl.ManagementData management) throws javax.management.NotCompliantMBeanException
            internal PageCacheImpl(ManagementData management) : base(management)
            {
                this.PageCacheCounters = management.ResolveDependency(typeof(PageCacheCounters));
            }
예제 #3
0
 public PageCacheMetrics(MetricRegistry registry, PageCacheCounters pageCacheCounters)
 {
     this._registry          = registry;
     this._pageCacheCounters = pageCacheCounters;
 }