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).
()
| 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) { |
no test coverage detected