Tabnine Logo
CacheLoaderInterceptor
Code IndexAdd Tabnine to your IDE (free)

How to use
CacheLoaderInterceptor
in
org.infinispan.interceptors.impl

Best Java code snippets using org.infinispan.interceptors.impl.CacheLoaderInterceptor (Showing top 10 results out of 315)

origin: wildfly/wildfly

  @Override
  public ModelNode execute(CacheLoaderInterceptor<?, ?> interceptor) {
    return new ModelNode(interceptor.getCacheLoaderLoads());
  }
},
origin: wildfly/wildfly

  @Override
  public ModelNode execute(CacheLoaderInterceptor<?, ?> interceptor) {
    return new ModelNode(interceptor.getCacheLoaderMisses());
  }
},
origin: org.infinispan/infinispan-lucene-directory

private void assertNoCacheLoaderInteractions() {
 for (EmbeddedCacheManager cacheManager : cacheManagers) {
   CacheLoaderInterceptor interceptor = findInterceptor(cacheManager.getCache(), CacheLoaderInterceptor.class);
   assertEquals(0, interceptor.getCacheLoaderLoads());
   assertEquals(0, interceptor.getCacheLoaderMisses());
 }
}
origin: org.infinispan/infinispan-core

 private void resetStats(Ownership ownership) {
   Cache<K, V> cache = cache(ownership);
   if (cache == null) return;
   AsyncInterceptorChain chain = extractComponent(cache, AsyncInterceptorChain.class);
   CacheLoaderInterceptor interceptor = chain.findInterceptorExtending(
      CacheLoaderInterceptor.class);
   interceptor.resetStatistics();
 }
}
origin: org.infinispan.server/infinispan-server-infinispan

CacheLoaderInterceptor
   interceptor = getFirstInterceptorWhichExtends(interceptors, CacheLoaderInterceptor.class);
result.set(interceptor != null ? interceptor.getCacheLoaderLoads() : 0);
break;
result.set(interceptor != null ? interceptor.getCacheLoaderMisses() : 0);
break;
origin: org.infinispan/infinispan-core

private void initStore(Cache<String, String> cache) {
 writeToStore(cache, key, value1);
 assertTrue(TestingUtil.getFirstLoader(cache).contains(key));
 cacheLoaderInterceptor(cache).resetStatistics();
}
origin: org.wildfly/wildfly-clustering-infinispan-extension

  @Override
  public ModelNode execute(CacheLoaderInterceptor<?, ?> interceptor) {
    return new ModelNode(interceptor.getCacheLoaderLoads());
  }
},
origin: org.wildfly/wildfly-clustering-infinispan-extension

  @Override
  public ModelNode execute(CacheLoaderInterceptor<?, ?> interceptor) {
    return new ModelNode(interceptor.getCacheLoaderMisses());
  }
},
origin: org.infinispan/infinispan-core

private void assertLoadAfterOperation(Cache<?, ?> cache, boolean skipLoad) {
 assertEquals("cache load", skipLoad ? 0 : 1, cacheLoaderInterceptor(cache).getCacheLoaderLoads());
}
origin: org.infinispan/infinispan-core

protected long loads(Ownership ownership) {
  Cache<K, V> cache = cache(ownership);
  if (cache == null) return 0;
  AsyncInterceptorChain chain = extractComponent(cache, AsyncInterceptorChain.class);
  CacheLoaderInterceptor interceptor = chain.findInterceptorExtending(CacheLoaderInterceptor.class);
  return interceptor.getCacheLoaderLoads();
}
org.infinispan.interceptors.implCacheLoaderInterceptor

Most used methods

  • getCacheLoaderLoads
  • getCacheLoaderMisses
  • resetStatistics

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Permission (java.security)
    Legacy security code; do not use.
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Notification (javax.management)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now