Jonathan Hart | 6df9017 | 2014-04-03 10:13:11 -0700 | [diff] [blame] | 1 | package net.onrc.onos.core.datagrid; |
Pavlin Radoslavov | 7940b65 | 2014-02-13 19:42:05 -0800 | [diff] [blame] | 2 | |
| 3 | /** |
| 4 | * Event Channel Listener Interface. |
| 5 | */ |
| 6 | public interface IEventChannelListener<K, V> { |
| 7 | /** |
| 8 | * Receive a notification that an entry is added. |
| 9 | * |
| 10 | * @param value the value for the entry. |
| 11 | */ |
| 12 | void entryAdded(V value); |
| 13 | |
| 14 | /** |
| 15 | * Receive a notification that an entry is removed. |
| 16 | * |
| 17 | * @param value the value for the entry. |
| 18 | */ |
| 19 | void entryRemoved(V value); |
| 20 | |
| 21 | /** |
| 22 | * Receive a notification that an entry is updated. |
| 23 | * |
| 24 | * @param value the value for the entry. |
| 25 | */ |
| 26 | void entryUpdated(V value); |
| 27 | } |