Interface OMRSTopic
-
- All Known Implementing Classes:
OMRSTopicConnector
public interface OMRSTopicOMRSTopic defines the interface to the messaging Topic for OMRS Events. It implemented by the OMRSTopicConnector.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidregisterListener(OMRSTopicListener newListener)Deprecated.voidregisterListener(OMRSTopicListener newListener, String serviceName)Register a listener object.voidregisterListener(OMRSTopicRepositoryEventListener newListener, String serviceName)Register a listener object.voidsendInstanceEvent(OMRSInstanceEvent event)Sends the supplied event to the topic.voidsendRegistryEvent(OMRSRegistryEvent event)Sends the supplied event to the topic.voidsendTypeDefEvent(OMRSTypeDefEvent event)Sends the supplied event to the topic.voidsetEventProtocolLevel(OMRSEventProtocolVersion eventProtocolVersion)Setup the version of the protocol to use for events.
-
-
-
Method Detail
-
setEventProtocolLevel
void setEventProtocolLevel(OMRSEventProtocolVersion eventProtocolVersion)
Setup the version of the protocol to use for events.- Parameters:
eventProtocolVersion- version enum
-
registerListener
@Deprecated void registerListener(OMRSTopicListener newListener)
Deprecated.Register a listener object. This object will be supplied with all of the events received on the topic.- Parameters:
newListener- object implementing the OMRSTopicListener interface
-
registerListener
void registerListener(OMRSTopicListener newListener, String serviceName)
Register a listener object. This object will be supplied with all of the events received on the topic.- Parameters:
newListener- object implementing the OMRSTopicListener interfaceserviceName- name of service that the listener is from
-
registerListener
void registerListener(OMRSTopicRepositoryEventListener newListener, String serviceName)
Register a listener object. This object will be supplied with all of the events received on the topic.- Parameters:
newListener- object implementing the OMRSTopicRepositoryEventListener interfaceserviceName- name of service that the listener is from
-
sendRegistryEvent
void sendRegistryEvent(OMRSRegistryEvent event) throws ConnectorCheckedException
Sends the supplied event to the topic.- Parameters:
event- OMRSRegistryEvent object containing the event properties.- Throws:
ConnectorCheckedException- the connector is not able to communicate with the event bus
-
sendTypeDefEvent
void sendTypeDefEvent(OMRSTypeDefEvent event) throws ConnectorCheckedException
Sends the supplied event to the topic.- Parameters:
event- OMRSTypeDefEvent object containing the event properties.- Throws:
ConnectorCheckedException- the connector is not able to communicate with the event bus
-
sendInstanceEvent
void sendInstanceEvent(OMRSInstanceEvent event) throws ConnectorCheckedException
Sends the supplied event to the topic.- Parameters:
event- OMRSInstanceEvent object containing the event properties.- Throws:
ConnectorCheckedException- the connector is not able to communicate with the event bus
-
-