Merge "Remove incorrect or unnecessary relativePaths"
[netvirt.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / api / EventDispatcher.java
1 /*
2  * Copyright (c) 2014, 2015 Red Hat, Inc. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.ovsdb.openstack.netvirt.api;
10
11 import org.opendaylight.ovsdb.openstack.netvirt.AbstractEvent;
12 import org.opendaylight.ovsdb.openstack.netvirt.AbstractHandler;
13 import org.osgi.framework.ServiceReference;
14
15 /**
16  * Openstack related events will be enqueued into a common event queue.
17  * This interface provides access to an event dispatcher, as well as registration to link dispatcher to which handlers
18  * dispatcher will utilize.
19  */
20 public interface EventDispatcher {
21     /**
22      * Enqueue the event.
23      * @param event the {@link org.opendaylight.ovsdb.openstack.netvirt.AbstractEvent} event to be handled.
24      */
25     void enqueueEvent(AbstractEvent event);
26     void eventHandlerAdded(final ServiceReference ref, AbstractHandler handler);
27     void eventHandlerRemoved(final ServiceReference ref);
28 }
29