Class AssetConsumerPublisher


  • public class AssetConsumerPublisher
    extends Object
    AssetConsumerPublisher is the connector responsible for publishing information about new and changed assets.
    • Constructor Detail

      • AssetConsumerPublisher

        public AssetConsumerPublisher​(AssetConsumerOutTopicServerConnector outTopicServerConnector,
                                      String outTopicName,
                                      AuditLog outTopicAuditLog)
        Constructor for the publisher.
        Parameters:
        outTopicServerConnector - connector to the out topic
        outTopicName - name of the out topic
        outTopicAuditLog - logging destination if anything goes wrong.
    • Method Detail

      • publishNewAssetEvent

        public void publishNewAssetEvent​(NewAssetEvent event)
        Output a new asset event.
        Parameters:
        event - event to send
      • publishUpdatedAssetEvent

        public void publishUpdatedAssetEvent​(UpdatedAssetEvent event)
        Output an updated asset event.
        Parameters:
        event - event to send.
      • disconnect

        public void disconnect()
        Shutdown the publishing process.