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 | * Abstraction of a entity capable of storing and/or distributing information |
| 7 | * across a cluster. |
| 8 | */ |
| 9 | public interface Store<E extends Event, D extends StoreDelegate<E>> { |
| 10 | |
| 11 | /** |
| 12 | * Sets the delegate on the store. |
| 13 | * |
| 14 | * @param delegate new store delegate |
| 15 | */ |
| 16 | void setDelegate(D delegate); |
| 17 | |
| 18 | /** |
| 19 | * Get the current store delegate. |
| 20 | * |
| 21 | * @return store delegate |
| 22 | */ |
| 23 | D getDelegate(); |
| 24 | |
| 25 | } |