Interface InboxListener


@NonNullByDefault public interface InboxListener
The InboxListener interface for receiving Inbox events.

A class that is interested in processing Inbox events fired synchronously by the Inbox service has to implement this interface.

Author:
Michael Grammling - Initial contribution
See Also:
  • Method Details

    • thingAdded

      void thingAdded(Inbox source, DiscoveryResult result)
      Invoked synchronously when a NEW DiscoveryResult has been added to the Inbox.
      Parameters:
      source - the inbox which is the source of this event (not null)
      result - the discovery result which has been added to the inbox (not null)
    • thingUpdated

      void thingUpdated(Inbox source, DiscoveryResult result)
      Invoked synchronously when an EXISTING DiscoveryResult has been updated in the Inbox.
      Parameters:
      source - the inbox which is the source of this event (not null)
      result - the discovery result which has been updated in the inbox (not null)
    • thingRemoved

      void thingRemoved(Inbox source, DiscoveryResult result)
      Invoked synchronously when an EXISTING DiscoveryResult has been removed from the Inbox.
      Parameters:
      source - the inbox which is the source of this event (not null)
      result - the discovery result which has been removed from the inbox (not null)