tom | 0755a36 | 2014-09-24 11:54:43 -0700 | [diff] [blame] | 1 | package org.onlab.onos.store; |
| 2 | |
| 3 | import org.onlab.onos.event.Event; |
| 4 | |
| 5 | /** |
| 6 | * Entity associated with a store and capable of receiving notifications of |
| 7 | * events within the store. |
| 8 | */ |
| 9 | public interface StoreDelegate<E extends Event> { |
| 10 | |
tom | ca55e64 | 2014-09-24 18:28:38 -0700 | [diff] [blame] | 11 | /** |
| 12 | * Notifies the delegate via the specified event. |
| 13 | * |
| 14 | * @param event store generated event |
| 15 | */ |
tom | 0755a36 | 2014-09-24 11:54:43 -0700 | [diff] [blame] | 16 | void notify(E event); |
| 17 | |
| 18 | } |