org.eclipse.corona.collaboration.ecf.interfaces
Interface ICoronaEventRouter

All Known Subinterfaces:
IClientEventRouter, IServerEventRouter
All Known Implementing Classes:
ECFEventRouter, EventRouter, EventRouter

public interface ICoronaEventRouter


Method Summary
 void addTopicListener(java.lang.String topicName, ITopicListener eventListener)
          Add an event listener for the specified topic.
 void processEvent(java.lang.Object event)
          Process events.
 void removeTopicListener(java.lang.String topicName, ITopicListener eventListener)
          Remove an event listener for the specified topic.
 void sendMessage(ITopic topic, org.osgi.service.event.Event osgiEvent)
          Send event to members of the topic.
 

Method Detail

processEvent

void processEvent(java.lang.Object event)
Process events. The event is received from ALL defined groups and members.

Parameters:
event - The event to be processed.

sendMessage

void sendMessage(ITopic topic,
                 org.osgi.service.event.Event osgiEvent)
Send event to members of the topic. The members list can be specified by adding a TargetIds property to the event properties. The value must be String[].

Parameters:
topic - The topic to whose members are to receive the event.
osgiEvent - The event to be sent.

addTopicListener

void addTopicListener(java.lang.String topicName,
                      ITopicListener eventListener)
Add an event listener for the specified topic.

Parameters:
topicName - Topic the event listener is for.
eventListener - The event listener to process the event.

removeTopicListener

void removeTopicListener(java.lang.String topicName,
                         ITopicListener eventListener)
Remove an event listener for the specified topic.

Parameters:
topicName - Topic the event listener is for.
eventListener - The event listener to process the event.

Copyright 2006 IBM Corporation and others.
All Rights Reserved.