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 TypeMethodDescriptionvoid
thingAdded
(Inbox source, DiscoveryResult result) Invoked synchronously when a NEWDiscoveryResult
has been added to theInbox
.void
thingRemoved
(Inbox source, DiscoveryResult result) Invoked synchronously when an EXISTINGDiscoveryResult
has been removed from theInbox
.void
thingUpdated
(Inbox source, DiscoveryResult result) Invoked synchronously when an EXISTINGDiscoveryResult
has been updated in theInbox
.
-
Method Details
-
thingAdded
Invoked synchronously when a NEWDiscoveryResult
has 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 EXISTINGDiscoveryResult
has 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 EXISTINGDiscoveryResult
has 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)
-