tom | d735672 | 2014-08-26 01:07:39 -0700 | [diff] [blame] | 1 | package org.onlab.onos.event; |
| 2 | |
| 3 | /** |
tom | 18567e9 | 2014-08-26 01:39:47 -0700 | [diff] [blame] | 4 | * Abstraction of a mechanism capable of accepting and dispatching events to |
| 5 | * appropriate event sinks. Where the event sinks are obtained is unspecified. |
| 6 | * Similarly, whether the events are accepted and dispatched synchronously |
| 7 | * or asynchronously is unspecified as well. |
tom | d735672 | 2014-08-26 01:07:39 -0700 | [diff] [blame] | 8 | */ |
tom | 32f6684 | 2014-08-27 19:27:47 -0700 | [diff] [blame] | 9 | public interface EventDispatcher { |
tom | d735672 | 2014-08-26 01:07:39 -0700 | [diff] [blame] | 10 | |
| 11 | /** |
| 12 | * Posts the specified event for dispatching. |
| 13 | * |
| 14 | * @param event event to be posted |
| 15 | */ |
tom | 32f6684 | 2014-08-27 19:27:47 -0700 | [diff] [blame] | 16 | void post(Event event); |
tom | d735672 | 2014-08-26 01:07:39 -0700 | [diff] [blame] | 17 | |
| 18 | } |