Searched refs:RemovalNotification (Results 1 - 16 of 16) sorted by relevance

/external/guava/guava/src/com/google/common/cache/
H A DRemovalListener.java43 // Technically should accept RemovalNotification<? extends K, ? extends V>, but because
44 // RemovalNotification is guaranteed covariant, let's make users' lives simpler.
45 void onRemoval(RemovalNotification<K, V> notification);
H A DRemovalListeners.java46 public void onRemoval(final RemovalNotification<K, V> notification) {
H A DRemovalNotification.java40 public final class RemovalNotification<K, V> implements Entry<K, V> { class in inherits:Entry
45 RemovalNotification(@Nullable K key, @Nullable V value, RemovalCause cause) { method in class:RemovalNotification
H A DCacheBuilder.java178 public void onRemoval(RemovalNotification<Object, Object> notification) {}
H A DLocalCache.java204 final Queue<RemovalNotification<K, V>> removalNotificationQueue;
250 ? LocalCache.<RemovalNotification<K, V>>discardingQueue()
251 : new ConcurrentLinkedQueue<RemovalNotification<K, V>>();
2001 RemovalNotification<K, V> notification;
2679 RemovalNotification<K, V> notification = new RemovalNotification<K, V>(key, value, cause);
/external/guava/guava-tests/test/com/google/common/cache/
H A DTestingRemovalListeners.java49 * {@link RemovalListener} that adds all {@link RemovalNotification} objects to a queue.
52 extends ConcurrentLinkedQueue<RemovalNotification<K, V>> implements RemovalListener<K, V> {
55 public void onRemoval(RemovalNotification<K, V> notification) {
61 * {@link RemovalListener} that counts each {@link RemovalNotification} it receives, and provides
66 private volatile RemovalNotification<K, V> lastNotification;
69 public void onRemoval(RemovalNotification<K, V> notification) {
86 public RemovalNotification<K, V> getLastNotification() {
96 public void onRemoval(RemovalNotification<K, V> notification) {}
H A DNullCacheTest.java51 RemovalNotification<Object, Object> notification = listener.remove();
68 RemovalNotification<Object, Object> notification = listener.remove();
85 RemovalNotification<Object, Object> notification = listener.remove();
H A DCacheBuilderTest.java437 RemovalNotification<String, String> notification = listener.remove();
509 for (RemovalNotification<String, String> notification : listener) {
592 for (RemovalNotification<String, String> notification : removalListener) {
H A DCacheExpirationTest.java180 public void onRemoval(RemovalNotification<Integer, AtomicInteger> notification) {
H A DLocalCacheTest.java630 public void onRemoval(RemovalNotification<Object, Object> notification) {
870 RemovalNotification<K, V> notification = listener.remove();
1253 RemovalNotification<Object, Object> notification = listener.remove();
1776 RemovalNotification<K, V> notification = map.removalNotificationQueue.poll();
2689 public void onRemoval(RemovalNotification<K, V> notification) {}
/external/guava/guava-tests/test/com/google/common/collect/
H A DMapMakerTest.java22 import com.google.common.collect.MapMaker.RemovalNotification;
85 RemovalNotification<String, String> notification = listener.remove();
155 for (RemovalNotification<String, String> notification : listener) {
H A DConcurrentHashMultisetTest.java31 import com.google.common.collect.MapMaker.RemovalNotification;
522 final List<RemovalNotification<String, Number>> notificationQueue = Lists.newArrayList();
525 @Override public void onRemoval(RemovalNotification<String, Number> notification) {
547 RemovalNotification<String, Number> notification = Iterables.getOnlyElement(notificationQueue);
H A DMapMakerInternalMapTest.java30 import com.google.common.collect.MapMaker.RemovalNotification;
295 public void onRemoval(RemovalNotification<Object, Object> notification) {}
427 RemovalNotification<K, V> notification = listener.remove();
1208 RemovalNotification<K, V> notification = map.removalNotificationQueue.poll();
1691 public void onRemoval(RemovalNotification<K, V> notification) {
1711 extends ConcurrentLinkedQueue<RemovalNotification<K, V>> implements RemovalListener<K, V> {
1713 public void onRemoval(RemovalNotification<K, V> notification) {
/external/guava/guava/src/com/google/common/collect/
H A DGenericMapMaker.java26 import com.google.common.collect.MapMaker.RemovalNotification;
48 public void onRemoval(RemovalNotification<Object, Object> notification) {}
H A DMapMaker.java732 void onRemoval(RemovalNotification<K, V> notification);
742 static final class RemovalNotification<K, V> extends ImmutableEntry<K, V> { class in class:MapMaker
747 RemovalNotification(@Nullable K key, @Nullable V value, RemovalCause cause) { method in class:MapMaker.RemovalNotification
868 RemovalNotification<K, V> notification =
869 new RemovalNotification<K, V>(key, value, removalCause);
H A DMapMakerInternalMap.java27 import com.google.common.collect.MapMaker.RemovalNotification;
179 final Queue<RemovalNotification<K, V>> removalNotificationQueue;
214 ? MapMakerInternalMap.<RemovalNotification<K, V>>discardingQueue()
215 : new ConcurrentLinkedQueue<RemovalNotification<K, V>>();
1998 RemovalNotification<K, V> notification;
2399 RemovalNotification<K, V> notification = new RemovalNotification<K, V>(key, value, cause);

Completed in 645 milliseconds