2 * Copyright (c) 2014, 2015 Red Hat, Inc. and others. All rights reserved.
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
9 package org.opendaylight.ovsdb.openstack.netvirt.api;
11 import org.opendaylight.ovsdb.openstack.netvirt.AbstractEvent;
12 import org.opendaylight.ovsdb.openstack.netvirt.AbstractHandler;
13 import org.osgi.framework.ServiceReference;
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.
20 public interface EventDispatcher {
23 * @param event the {@link org.opendaylight.ovsdb.openstack.netvirt.AbstractEvent} event to be handled.
25 void enqueueEvent(AbstractEvent event);
26 void eventHandlerAdded(final ServiceReference ref, AbstractHandler handler);
27 void eventHandlerRemoved(final ServiceReference ref);