public interface INotificationManager
Modifier and Type | Method and Description |
---|---|
void |
addListener(INotificationListener listener,
java.util.concurrent.Executor executor) |
IIdentifier |
createNotificationIdentifier(java.lang.String name)
create a locally unique identifier with the participant as the owner
|
boolean |
hasListeners() |
void |
notify(IIdentifier participantId,
INotification notification)
send the notifiction out to some participant, or all if id is null (but you
should probably use IIdentifier.ALL for clarity)
|
void |
post(INotification notification)
post a notification internally, firing the listeners
|
void |
removeListener(INotificationListener listener) |
void addListener(INotificationListener listener, java.util.concurrent.Executor executor)
void removeListener(INotificationListener listener)
boolean hasListeners()
void notify(IIdentifier participantId, INotification notification)
participantId
- notification
- void post(INotification notification)
notification
- IIdentifier createNotificationIdentifier(java.lang.String name)
name
-