Package org.sensorhub.api.event
Interface IEventMultiTopicProducer
public interface IEventMultiTopicProducer
Common interface for all event producers that can produce events on multiple topic channels.
- Since:
- Mar 19, 2015
-
Method Summary
Modifier and TypeMethodDescriptionbooleanregisterListener(String topic, IEventListener listener) Registers a listener with the given topic.voidunregisterListener(String topic, IEventListener listener) Unregisters a listener from this event producer.
-
Method Details
-
registerListener
Registers a listener with the given topic. The listener is reponsible for filtering received events.- Parameters:
topic- topic identifierlistener-- Returns:
- true if topic is supported by dispatcher
-
unregisterListener
Unregisters a listener from this event producer. No more event will be sent to the listener from this producer.- Parameters:
topic- topic identifierlistener-
-