Interface OMRSTopic

  • All Known Implementing Classes:
    OMRSTopicConnector

    public interface OMRSTopic
    OMRSTopic defines the interface to the messaging Topic for OMRS Events. It implemented by the OMRSTopicConnector.
    • Method Detail

      • setEventProtocolLevel

        void setEventProtocolLevel​(OMRSEventProtocolVersion eventProtocolVersion)
        Set up 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 the events received on the topic.
        Parameters:
        newListener - object implementing the OMRSTopicListener interface
      • registerListener

        void registerListener​(OMRSTopicListener newListener,
                              java.lang.String serviceName)
        Register a listener object. This object will be supplied with all the events received on the topic.
        Parameters:
        newListener - object implementing the OMRSTopicListener interface
        serviceName - name of service that the listener is from
      • registerListener

        void registerListener​(OMRSTopicRepositoryEventListener newListener,
                              java.lang.String serviceName)
        Register a listener object. This object will be supplied with all the events received on the topic.
        Parameters:
        newListener - object implementing the OMRSTopicRepositoryEventListener interface
        serviceName - name of service that the listener is from