@Service(name="notification-service") @RunLevel(value=10) @MessageReceiver public class NotificationService extends Object implements NotifierManager, EventListener, ConfigListener
notify(PayaraNotification) HK2
events, and distributes them to notifiers discovered by the service.EventListener.Event<T>| Constructor and Description |
|---|
NotificationService() |
| Modifier and Type | Method and Description |
|---|---|
void |
bootstrapNotificationService() |
UnprocessedChangeEvents |
changed(PropertyChangeEvent[] events)
Notification that @Configured objects that were injected have changed
|
void |
event(EventListener.Event<?> event)
Process a Glassfish/Payara event
|
void |
notify(PayaraNotification event) |
void |
reconfigureNotifier(PayaraNotifierConfiguration configuration)
Alert the notification service that a notifier configuration has been updated
with the --dynamic flag, so the notifier needs updating dynamically.
|
void |
shutdownNotificationService() |
public void event(EventListener.Event<?> event)
EventListenerevent in interface EventListenerpublic void shutdownNotificationService()
public void bootstrapNotificationService()
public void notify(@SubscribeTo
PayaraNotification event)
public void reconfigureNotifier(PayaraNotifierConfiguration configuration)
NotifierManagerreconfigureNotifier in interface NotifierManagerconfiguration - the configuration that was updatedpublic UnprocessedChangeEvents changed(PropertyChangeEvent[] events)
ConfigListenerchanged in interface ConfigListenerevents - list of changesCopyright © 2021. All rights reserved.