net.sf.ehcache.Ehcache.getSampledCacheStatistics()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(243)

本文整理了Java中net.sf.ehcache.Ehcache.getSampledCacheStatistics()方法的一些代码示例,展示了Ehcache.getSampledCacheStatistics()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ehcache.getSampledCacheStatistics()方法的具体详情如下:
包路径:net.sf.ehcache.Ehcache
类名称:Ehcache
方法名:getSampledCacheStatistics

Ehcache.getSampledCacheStatistics介绍

[英]Returns sampled statistics for this cache.
[中]返回此缓存的采样统计信息。

代码示例

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public SampledCacheStatistics getSampledCacheStatistics() {
  5. return underlyingCache.getSampledCacheStatistics();
  6. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public long getCacheElementExpiredMostRecentSample() {
  5. return cache.getSampledCacheStatistics().getCacheElementExpiredMostRecentSample();
  6. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public long getCacheMissMostRecentSample() {
  5. return cache.getSampledCacheStatistics().getCacheMissMostRecentSample();
  6. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public long getCacheMissInMemoryMostRecentSample() {
  5. return cache.getSampledCacheStatistics().getCacheMissInMemoryMostRecentSample();
  6. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public long getCacheMissOffHeapMostRecentSample() {
  5. return cache.getSampledCacheStatistics().getCacheMissOffHeapMostRecentSample();
  6. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public long getCacheMissOnDiskMostRecentSample() {
  5. return cache.getSampledCacheStatistics().getCacheMissOnDiskMostRecentSample();
  6. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public String getStatisticsAccuracyDescription() {
  5. return cache.getSampledCacheStatistics().getStatisticsAccuracyDescription();
  6. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public long getAverageGetTimeMostRecentSample() {
  5. return cache.getSampledCacheStatistics().getAverageGetTimeMostRecentSample();
  6. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public long getCacheHitInMemoryMostRecentSample() {
  5. return cache.getSampledCacheStatistics().getCacheHitInMemoryMostRecentSample();
  6. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public long getCacheHitMostRecentSample() {
  5. return cache.getSampledCacheStatistics().getCacheHitMostRecentSample();
  6. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public long getCacheMissExpiredMostRecentSample() {
  5. return cache.getSampledCacheStatistics().getCacheMissExpiredMostRecentSample();
  6. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public long getCacheSearchRate() {
  5. return cache.getSampledCacheStatistics().getSearchesPerSecond();
  6. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public long getCacheElementEvictedMostRecentSample() {
  5. return cache.getSampledCacheStatistics().getCacheElementEvictedMostRecentSample();
  6. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public long getCacheElementPutMostRecentSample() {
  5. return cache.getSampledCacheStatistics().getCacheElementPutMostRecentSample();
  6. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public long getCacheElementRemovedMostRecentSample() {
  5. return cache.getSampledCacheStatistics().getCacheElementRemovedMostRecentSample();
  6. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public long getCacheHitOffHeapMostRecentSample() {
  5. return cache.getSampledCacheStatistics().getCacheHitOffHeapMostRecentSample();
  6. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public boolean isSampledStatisticsEnabled() {
  5. return cache.getSampledCacheStatistics().isSampledStatisticsEnabled();
  6. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public long getCacheAverageSearchTime() {
  5. return cache.getSampledCacheStatistics().getAverageSearchTime();
  6. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public int getCacheHitRatioMostRecentSample() {
  5. return cache.getSampledCacheStatistics().getCacheHitRatioMostRecentSample();
  6. }
  7. }

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

  1. /**
  2. * {@inheritDoc}
  3. */
  4. public long getCacheMissNotFoundMostRecentSample() {
  5. return cache.getSampledCacheStatistics().getCacheMissNotFoundMostRecentSample();
  6. }

相关文章

Ehcache类方法