MCPcopy Create free account
hub / github.com/antlr/codebuff / processPendingNotifications

Method processPendingNotifications

output/java_guava/1.4.13/LocalCache.java:2033–2042  ·  view source on GitHub ↗

Notifies listeners that an entry has been automatically removed due to expiration, eviction, or eligibility for garbage collection. This should be called every time expireEntries or evictEntry is called (once the lock is released).

()

Source from the content-addressed store, hash-verified

2031
2032
2033 void processPendingNotifications() {
2034 RemovalNotification<K, V> notification;
2035 while ((notification = removalNotificationQueue.poll()) != null) {
2036 try {
2037 removalListener.onRemoval(notification);
2038 } catch (Throwable e) {
2039 logger.log(Level.WARNING, "Exception thrown by removal listener", e);
2040 }
2041 }
2042 }
2043
2044 @SuppressWarnings("unchecked")
2045 final Segment<K, V>[] newSegmentArray(int ssize) {

Callers 1

runUnlockedCleanupMethod · 0.45

Calls 3

logMethod · 0.80
onRemovalMethod · 0.65
pollMethod · 0.45

Tested by

no test coverage detected