Class AbstractInboxEvent

  • All Implemented Interfaces:
    Event
    Direct Known Subclasses:
    InboxAddedEvent, InboxRemovedEvent, InboxUpdatedEvent

    @NonNullByDefault
    public abstract class AbstractInboxEvent
    extends AbstractEvent
    Abstract implementation of an inbox event which will be posted by the Inbox for added, removed and updated discovery results.
    Author:
    Stefan Bußweiler - Initial contribution
    • Constructor Detail

      • AbstractInboxEvent

        public AbstractInboxEvent​(String topic,
                                  String payload,
                                  DiscoveryResultDTO discoveryResult)
        Must be called in subclass constructor to create an inbox event.
        Parameters:
        topic - the topic
        payload - the payload
        discoveryResult - the discovery-result data transfer object
    • Method Detail

      • getDiscoveryResult

        public DiscoveryResultDTO getDiscoveryResult()
        Gets the discovery result as data transfer object.
        Returns:
        the discoveryResult