public class NetworkEventDispatcher
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
NetworkEventDispatcher() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addNetworkConfigurationChangeListener(NetworkConfigurationChangeListener listener)
Adds new NetworkConfigurationChangeListener which will
be informed for network configuration changes.
|
protected void |
fireChangeEvent(ChangeEvent evt)
Fire ChangeEvent.
|
protected void |
fireChangeEvent(ChangeEvent evt,
int wait)
Fire ChangeEvent.
|
(package private) static void |
fireChangeEvent(ChangeEvent evt,
NetworkConfigurationChangeListener listener)
Fire ChangeEvent.
|
boolean |
isRunning()
Returns true if this dispatcher is currently running and
delivering events when available and false
otherwise.
|
(package private) void |
removeNetworkConfigurationChangeListener(NetworkConfigurationChangeListener listener)
Remove NetworkConfigurationChangeListener.
|
void |
run()
Runs the waiting thread.
|
void |
stop()
Interrupts this dispatcher so that it would no longer disptach events.
|
void addNetworkConfigurationChangeListener(NetworkConfigurationChangeListener listener)
listener
- the listener.void removeNetworkConfigurationChangeListener(NetworkConfigurationChangeListener listener)
listener
- the listener.protected void fireChangeEvent(ChangeEvent evt)
evt
- the event to fire.protected void fireChangeEvent(ChangeEvent evt, int wait)
evt
- the event to fire.static void fireChangeEvent(ChangeEvent evt, NetworkConfigurationChangeListener listener)
evt
- the event to fire.public void run()
run
in interface java.lang.Runnable
public void stop()
public boolean isRunning()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.