com.google.common.cache.LocalCache.reclaimKey()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(87)

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

LocalCache.reclaimKey介绍

暂无

代码示例

代码示例来源:origin: google/guava

@GuardedBy("this")
void drainKeyReferenceQueue() {
 Reference<? extends K> ref;
 int i = 0;
 while ((ref = keyReferenceQueue.poll()) != null) {
  @SuppressWarnings("unchecked")
  ReferenceEntry<K, V> entry = (ReferenceEntry<K, V>) ref;
  map.reclaimKey(entry);
  if (++i == DRAIN_MAX) {
   break;
  }
 }
}

代码示例来源:origin: google/j2objc

@GuardedBy("this")
void drainKeyReferenceQueue() {
 Reference<? extends K> ref;
 int i = 0;
 while ((ref = keyReferenceQueue.poll()) != null) {
  @SuppressWarnings("unchecked")
  ReferenceEntry<K, V> entry = (ReferenceEntry<K, V>) ref;
  map.reclaimKey(entry);
  if (++i == DRAIN_MAX) {
   break;
  }
 }
}

代码示例来源:origin: wildfly/wildfly

@GuardedBy("this")
void drainKeyReferenceQueue() {
 Reference<? extends K> ref;
 int i = 0;
 while ((ref = keyReferenceQueue.poll()) != null) {
  @SuppressWarnings("unchecked")
  ReferenceEntry<K, V> entry = (ReferenceEntry<K, V>) ref;
  map.reclaimKey(entry);
  if (++i == DRAIN_MAX) {
   break;
  }
 }
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

@GuardedBy("Segment.this")
void drainKeyReferenceQueue() {
 Reference<? extends K> ref;
 int i = 0;
 while ((ref = keyReferenceQueue.poll()) != null) {
  @SuppressWarnings("unchecked")
  ReferenceEntry<K, V> entry = (ReferenceEntry<K, V>) ref;
  map.reclaimKey(entry);
  if (++i == DRAIN_MAX) {
   break;
  }
 }
}

代码示例来源:origin: com.google.guava/guava-jdk5

@GuardedBy("Segment.this")
void drainKeyReferenceQueue() {
 Reference<? extends K> ref;
 int i = 0;
 while ((ref = keyReferenceQueue.poll()) != null) {
  @SuppressWarnings("unchecked")
  ReferenceEntry<K, V> entry = (ReferenceEntry<K, V>) ref;
  map.reclaimKey(entry);
  if (++i == DRAIN_MAX) {
   break;
  }
 }
}

代码示例来源:origin: com.diffplug.guava/guava-cache

@GuardedBy("this")
void drainKeyReferenceQueue() {
  Reference<? extends K> ref;
  int i = 0;
  while ((ref = keyReferenceQueue.poll()) != null) {
    @SuppressWarnings("unchecked")
    ReferenceEntry<K, V> entry = (ReferenceEntry<K, V>) ref;
    map.reclaimKey(entry);
    if (++i == DRAIN_MAX) {
      break;
    }
  }
}

代码示例来源:origin: org.hudsonci.lib.guava/guava

@GuardedBy("Segment.this")
void drainKeyReferenceQueue() {
 Reference<? extends K> ref;
 int i = 0;
 while ((ref = keyReferenceQueue.poll()) != null) {
  @SuppressWarnings("unchecked")
  ReferenceEntry<K, V> entry = (ReferenceEntry<K, V>) ref;
  map.reclaimKey(entry);
  if (++i == DRAIN_MAX) {
   break;
  }
 }
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

@GuardedBy("Segment.this")
void drainKeyReferenceQueue() {
 Reference<? extends K> ref;
 int i = 0;
 while ((ref = keyReferenceQueue.poll()) != null) {
  @SuppressWarnings("unchecked")
  ReferenceEntry<K, V> entry = (ReferenceEntry<K, V>) ref;
  map.reclaimKey(entry);
  if (++i == DRAIN_MAX) {
   break;
  }
 }
}

代码示例来源:origin: org.sonatype.sisu/sisu-guava

@GuardedBy("Segment.this")
void drainKeyReferenceQueue() {
 Reference<? extends K> ref;
 int i = 0;
 while ((ref = keyReferenceQueue.poll()) != null) {
  @SuppressWarnings("unchecked")
  ReferenceEntry<K, V> entry = (ReferenceEntry<K, V>) ref;
  map.reclaimKey(entry);
  if (++i == DRAIN_MAX) {
   break;
  }
 }
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/com.google.guava

@GuardedBy("Segment.this")
void drainKeyReferenceQueue() {
 Reference<? extends K> ref;
 int i = 0;
 while ((ref = keyReferenceQueue.poll()) != null) {
  @SuppressWarnings("unchecked")
  ReferenceEntry<K, V> entry = (ReferenceEntry<K, V>) ref;
  map.reclaimKey(entry);
  if (++i == DRAIN_MAX) {
   break;
  }
 }
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

@GuardedBy("Segment.this")
void drainKeyReferenceQueue() {
 Reference<? extends K> ref;
 int i = 0;
 while ((ref = keyReferenceQueue.poll()) != null) {
  @SuppressWarnings("unchecked")
  ReferenceEntry<K, V> entry = (ReferenceEntry<K, V>) ref;
  map.reclaimKey(entry);
  if (++i == DRAIN_MAX) {
   break;
  }
 }
}

代码示例来源:origin: Nextdoor/bender

@GuardedBy("Segment.this")
void drainKeyReferenceQueue() {
 Reference<? extends K> ref;
 int i = 0;
 while ((ref = keyReferenceQueue.poll()) != null) {
  @SuppressWarnings("unchecked")
  ReferenceEntry<K, V> entry = (ReferenceEntry<K, V>) ref;
  map.reclaimKey(entry);
  if (++i == DRAIN_MAX) {
   break;
  }
 }
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

@GuardedBy("this")
void drainKeyReferenceQueue() {
 Reference<? extends K> ref;
 int i = 0;
 while ((ref = keyReferenceQueue.poll()) != null) {
  @SuppressWarnings("unchecked")
  ReferenceEntry<K, V> entry = (ReferenceEntry<K, V>) ref;
  map.reclaimKey(entry);
  if (++i == DRAIN_MAX) {
   break;
  }
 }
}

代码示例来源:origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@GuardedBy("this")
void drainKeyReferenceQueue() {
 Reference<? extends K> ref;
 int i = 0;
 while ((ref = keyReferenceQueue.poll()) != null) {
  @SuppressWarnings("unchecked")
  ReferenceEntry<K, V> entry = (ReferenceEntry<K, V>) ref;
  map.reclaimKey(entry);
  if (++i == DRAIN_MAX) {
   break;
  }
 }
}

相关文章

微信公众号

最新文章

更多