View Javadoc

1   package com.atlassian.cache;
2   
3   import com.atlassian.annotations.PublicApi;
4   
5   import javax.annotation.Nonnull;
6   
7   /**
8    * An abstract adapter for {@code CacheEntryListener}.
9    *
10   * @since 2.4
11   */
12  @PublicApi
13  public abstract class CacheEntryAdapter<K, V> implements CacheEntryListener<K, V>
14  {
15      @Override
16      public void onAdd(@Nonnull CacheEntryEvent<K, V> event)
17      {
18      }
19  
20      @Override
21      public void onEvict(@Nonnull CacheEntryEvent<K, V> event)
22      {
23      }
24  
25      @Override
26      public void onRemove(@Nonnull CacheEntryEvent<K, V> event)
27      {
28      }
29  
30      @Override
31      public void onUpdate(@Nonnull CacheEntryEvent<K, V> event)
32      {
33      }
34  }