blob: 9eaef665c766837161f02cf5ac6c8d24da1e326c [file] [log] [blame]
tom0755a362014-09-24 11:54:43 -07001package org.onlab.onos.store;
2
3import org.onlab.onos.event.Event;
4
5/**
6 * Abstraction of a entity capable of storing and/or distributing information
7 * across a cluster.
8 */
9public 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}