Class dstc.kalimantan.debug.PollManager
All Packages Class Hierarchy This Package Previous Next Index
Class dstc.kalimantan.debug.PollManager
java.lang.Object
|
+----java.lang.Thread
|
+----dstc.kalimantan.debug.PollManager
- public class PollManager
- extends Thread
Provide a periodic, resynchable polling mechanism
-
clients
-
-
period
-
-
thread
-
-
PollManager(long)
- Constructs a poll manager with the given period (in ms) between polls
-
addClient(PollCallback)
- Adds a client
-
refresh()
- Refreshs each of the clients
-
removeClient(PollCallback)
- Remotes a client
-
run()
- poll and wait loop
-
sync()
- Poll all clients NOW!
period
protected long period
clients
protected Vector clients
thread
protected Thread thread
PollManager
public PollManager(long p)
- Constructs a poll manager with the given period (in ms) between polls
refresh
protected synchronized void refresh()
- Refreshs each of the clients
addClient
public void addClient(PollCallback client)
- Adds a client
removeClient
public boolean removeClient(PollCallback client)
- Remotes a client
sync
public synchronized void sync()
- Poll all clients NOW!
run
public void run()
- poll and wait loop
- Overrides:
- run in class Thread
All Packages Class Hierarchy This Package Previous Next Index