Interface INotificationEmitter<T extends INotificationData>
- All Superinterfaces:
- AutoCloseable,- Closeable
Represents a notification emitter for an 
INotificationData type.- 
Method SummaryModifier and TypeMethodDescriptionvoidaddRecipient(INotificationRecipient recipient) Add aINotificationRecipientto the recipient list which will be used to emit the nextINotificationData.voidclear()Clear the previously addedINotificationRecipient(s)Produce and return a new instance ofINotificationRecipientBuildervoidEmit theINotificationDatawith the previously addedINotificationRecipient(addRecipient(INotificationRecipient)) and clear the previously addedINotificationRecipient(s)voidEmit theINotificationDatawith the previously addedINotificationRecipient(addRecipient(INotificationRecipient))
- 
Method Details- 
createRecipientBuilderINotificationRecipientBuilder createRecipientBuilder()Produce and return a new instance ofINotificationRecipientBuilder- Returns:
- a new INotificationRecipientBuilderinstance
 
- 
addRecipientAdd aINotificationRecipientto the recipient list which will be used to emit the nextINotificationData.- Parameters:
- recipient- the- INotificationRecipientto add
 
- 
emitEmit theINotificationDatawith the previously addedINotificationRecipient(addRecipient(INotificationRecipient)) and clear the previously addedINotificationRecipient(s)- Parameters:
- notificationData- the- INotificationDatato emit
 
- 
emitEmit theINotificationDatawith the previously addedINotificationRecipient(addRecipient(INotificationRecipient))- Parameters:
- notificationData- the- INotificationDatato emit
- clearRecipients- if true the previously added- INotificationRecipientwill be clear after emit the- INotificationDatadata, otherwise the previously added recipients won't be changed.
 
- 
clearvoid clear()Clear the previously addedINotificationRecipient(s)
 
-