public class NotifierGroup extends Object implements EventNotifier
Constructor and Description |
---|
NotifierGroup()
Create a notifier group
|
Modifier and Type | Method and Description |
---|---|
boolean |
addNotifier(EventNotifier notifier)
Add specified event notifier to event notifier group
|
boolean |
addNotifiers(Collection<EventNotifier> notifiers)
Add a collection of event notifiers to event notifier group
|
Collection<EventNotifier> |
getNotifiers()
Retrieve all event notifier associated with this group
|
void |
notify(EventTrigger trigger,
EventState<?> state,
long timestamp)
Invoke the notify() method of each of the notifiers in group
|
boolean |
removeNotifier(EventNotifier notifier)
Remove event notifier from event notifier group
|
boolean |
removeNotifiers(Collection<EventNotifier> notifiers)
Remove a collection of event notifiers from event notifier group
|
public Collection<EventNotifier> getNotifiers()
public boolean addNotifier(EventNotifier notifier)
notifier
- event notifier to be addedpublic boolean addNotifiers(Collection<EventNotifier> notifiers)
notifiers
- collection of event notifiers to be addedpublic boolean removeNotifier(EventNotifier notifier)
notifier
- event notifier to be removedpublic boolean removeNotifiers(Collection<EventNotifier> notifiers)
notifiers
- collection of event notifiers to be removedpublic void notify(EventTrigger trigger, EventState<?> state, long timestamp)
notify
in interface EventNotifier
state
- an event state
timestamp
- time stamp of the eventEventNotifier.notify(org.eclipse.jetty.monitor.jmx.EventTrigger, org.eclipse.jetty.monitor.jmx.EventState, long)
Copyright © 1995-2015 Webtide. All Rights Reserved.