Interface OpenMetadataTopic
-
- All Known Implementing Classes:
OpenMetadataTopicConnector
public interface OpenMetadataTopicOpenMetadataTopic defines the generic interface to an event bus topic for open metadata events. It is implemented by the subclasses of OpenMetadataTopicConnector that connect to real world event bus infrastructures.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringregisterListener(OpenMetadataTopicListener newListener)Register a listener object.voidsendEvent(String event)Sends the supplied event to the topic.
-
-
-
Method Detail
-
registerListener
String registerListener(OpenMetadataTopicListener newListener)
Register a listener object. This object will be supplied with all of the events received on the topic.- Parameters:
newListener- object implementing the listener interface- Returns:
- name of the topic
-
sendEvent
void sendEvent(String event) throws ConnectorCheckedException
Sends the supplied event to the topic.- Parameters:
event- object containing the event properties.- Throws:
ConnectorCheckedException- the connector is not able to communicate with the event bus
-
-