|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MonitoringEventBus
Method Summary | |
---|---|
void |
addListener(MonitoringEventListener listener)
Adds the listener to the collection of listeners who will be notifed when any monitoring event occurs. |
void |
fireMonitoringEvent(MonitoringEvent event)
Dispatches the given MonitoringEvent to all registred
listeners (calls method
MonitoringEventListener.onMonitoringEvent(MonitoringEvent) on all
of them}. |
boolean |
hasListener(MonitoringEventListener listener)
Returns whether the specified instance of monitoring listener was added to the collection of listeners who will be notifed when an transfer event occurs |
void |
removeListener(MonitoringEventListener listener)
Removes the transfer listener from the collection of listeners so it no longer receives transfer events. |
Method Detail |
---|
void addListener(MonitoringEventListener listener)
null
,
no exception is thrown and no action is performed
listener
- the monitoring listenerremoveListener(org.jmonit.events.MonitoringEventListener)
,
MonitoringEventListener
void removeListener(MonitoringEventListener listener)
null
or specified listener was not added to this
MonitoringEventSupport
object no exception is thrown and
no action is performed
listener
- the monitoring listeneraddListener(org.jmonit.events.MonitoringEventListener)
boolean hasListener(MonitoringEventListener listener)
listener
- the transfer listener
true
if given listener was added to the collection of listeners
false
otherwise
See Also:
addListener(org.jmonit.events.MonitoringEventListener)
fireMonitoringEvent
void fireMonitoringEvent(MonitoringEvent event)
- Dispatches the given
MonitoringEvent
to all registred
listeners (calls method
MonitoringEventListener.onMonitoringEvent(MonitoringEvent)
on all
of them}.
- Parameters:
event
- the MonitorTaggedEvent which will be dispached to listeners
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2007 Nicolas De Loof. All Rights Reserved.