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 Summary
Modifier and TypeMethodDescriptionvoidthingAdded(Inbox source, DiscoveryResult result) Invoked synchronously when a NEWDiscoveryResulthas been added to theInbox.voidthingRemoved(Inbox source, DiscoveryResult result) Invoked synchronously when an EXISTINGDiscoveryResulthas been removed from theInbox.voidthingUpdated(Inbox source, DiscoveryResult result) Invoked synchronously when an EXISTINGDiscoveryResulthas been updated in theInbox.
-
Method Details
-
thingAdded
Invoked synchronously when a NEWDiscoveryResulthas been added to theInbox.- 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
Invoked synchronously when an EXISTINGDiscoveryResulthas been updated in theInbox.- 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
Invoked synchronously when an EXISTINGDiscoveryResulthas been removed from theInbox.- 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)
-