Tabnine Logo
DefaultTierStatistics$CompensatingCounters
Code IndexAdd Tabnine to your IDE (free)

How to use
DefaultTierStatistics$CompensatingCounters
in
org.ehcache.impl.internal.statistics

Best Java code snippets using org.ehcache.impl.internal.statistics.DefaultTierStatistics$CompensatingCounters (Showing top 6 results out of 315)

origin: org.ehcache/ehcache

static CompensatingCounters empty() {
 return new CompensatingCounters(0, 0, 0, 0, 0, 0);
}
origin: org.ehcache/ehcache

/**
 * Reset the values for this tier. However, note that {@code mapping, allocatedMemory, occupiedMemory}
 * but be reset since it doesn't make sense.
 */
@Override
public void clear() {
 compensatingCounters = compensatingCounters.snapshot(this);
}
origin: org.ehcache/ehcache

 CompensatingCounters snapshot(DefaultTierStatistics statistics) {
  return new CompensatingCounters(
   statistics.getHits() + hits,
   statistics.getMisses() + misses,
   statistics.getPuts() + puts,
   statistics.getRemovals() + removals,
   statistics.getEvictions() + evictions,
   statistics.getExpirations() + expirations
  );
 }
}
origin: ehcache/ehcache3

static CompensatingCounters empty() {
 return new CompensatingCounters(0, 0, 0, 0, 0, 0);
}
origin: ehcache/ehcache3

 CompensatingCounters snapshot(DefaultTierStatistics statistics) {
  return new CompensatingCounters(
   statistics.getHits() + hits,
   statistics.getMisses() + misses,
   statistics.getPuts() + puts,
   statistics.getRemovals() + removals,
   statistics.getEvictions() + evictions,
   statistics.getExpirations() + expirations
  );
 }
}
origin: ehcache/ehcache3

/**
 * Reset the values for this tier. However, note that {@code mapping, allocatedMemory, occupiedMemory}
 * but be reset since it doesn't make sense.
 */
@Override
public void clear() {
 compensatingCounters = compensatingCounters.snapshot(this);
}
org.ehcache.impl.internal.statisticsDefaultTierStatistics$CompensatingCounters

Most used methods

  • <init>
  • snapshot

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JButton (javax.swing)
  • Best IntelliJ plugins
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