public class SystemActivityEventDispatcher
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
SystemActivityEventDispatcher() |
Modifier and Type | Method and Description |
---|---|
void |
addSystemActivityChangeListener(SystemActivityChangeListener listener)
Registers a listener that would be notified of changes that have occurred
in the underlying system.
|
protected void |
fireSystemActivityEvent(SystemActivityEvent evt)
Delivers the specified event to all registered listeners.
|
protected void |
fireSystemActivityEvent(SystemActivityEvent evt,
int wait)
Delivers the specified event to all registered listeners.
|
protected void |
fireSystemActivityEventCurrentThread(SystemActivityEvent evt)
Delivers the specified event to all registered listeners.
|
void |
removeSystemActivityChangeListener(SystemActivityChangeListener listener)
Remove the specified listener so that it won't receive further
notifications of changes that occur in the underlying system
|
void |
run()
Runs the waiting thread.
|
void |
stop()
Interrupts this dispatcher so that it would no longer disptach events.
|
public void addSystemActivityChangeListener(SystemActivityChangeListener listener)
listener
- the listener that we'd like to register for changes in
the underlying system.public void removeSystemActivityChangeListener(SystemActivityChangeListener listener)
listener
- the listener to remove.public void stop()
protected void fireSystemActivityEvent(SystemActivityEvent evt)
evt
- the SystemActivityEvent that we'd like delivered to
all registered message listeners.protected void fireSystemActivityEventCurrentThread(SystemActivityEvent evt)
evt
- the SystemActivityEvent that we'd like delivered to
all registered message listeners.protected void fireSystemActivityEvent(SystemActivityEvent evt, int wait)
evt
- the SystemActivityEvent that we'd like delivered to
all registered message listeners.wait
- time in ms. to wait before firing the event.public void run()
run
in interface java.lang.Runnable
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.