Skip to main content
summaryrefslogtreecommitdiffstats
blob: 78df305e87ceac8d97726f762dc90cf813cf4a9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*******************************************************************************
 * Copyright (c) 2004, 2007 Boeing.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Boeing - initial API and implementation
 *******************************************************************************/
package org.eclipse.osee.event;

import java.util.Map;

/**
 * @author Roberto E. Escobar
 */
public interface EventService {

   /**
    * Initiate asynchronous, ordered delivery of an event. This method returns to the caller before delivery of the
    * event is completed.
    */
   void postEvent(String topic, Map<String, ?> data);

   /**
    * Initiate synchronous delivery of an event. This method does not return to the caller until delivery of the event
    * is completed.
    */
   void sendEvent(String topic, Map<String, ?> data);

}

Back to the top