c399a42a108d034c4e2449b871624f231bd49b22
[ovsdb.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / api / EventDispatcher.java
1 /*
2  * Copyright (C) 2014 Red Hat, Inc.
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  * Authors : Dave Tucker, Flavio Fernandes
9  */
10
11 package org.opendaylight.ovsdb.openstack.netvirt.api;
12
13 import org.opendaylight.ovsdb.openstack.netvirt.AbstractEvent;
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     public void enqueueEvent(AbstractEvent event);
26 }
27