tom | d735672 | 2014-08-26 01:07:39 -0700 | [diff] [blame^] | 1 | package org.onlab.onos.event; |
2 | |||||
3 | /** | ||||
4 | * Abstraction of a mechanism capable of accepting and dispatching events. | ||||
5 | * Whether the events are accepted and the dispatched synchronously or | ||||
6 | * asynchronously is unspecified. | ||||
7 | */ | ||||
8 | public interface EventDispatcher<E extends Event> { | ||||
9 | |||||
10 | /** | ||||
11 | * Posts the specified event for dispatching. | ||||
12 | * | ||||
13 | * @param event event to be posted | ||||
14 | */ | ||||
15 | void post(E event); | ||||
16 | |||||
17 | } |