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

Variable Index

 o clients
 o period
 o thread

Constructor Index

 o PollManager(long)
Constructs a poll manager with the given period (in ms) between polls

Method Index

 o addClient(PollCallback)
Adds a client
 o refresh()
Refreshs each of the clients
 o removeClient(PollCallback)
Remotes a client
 o run()
poll and wait loop
 o sync()
Poll all clients NOW!

Variables

 o period
  protected long period
 o clients
  protected Vector clients
 o thread
  protected Thread thread

Constructors

 o PollManager
  public PollManager(long p)
Constructs a poll manager with the given period (in ms) between polls

Methods

 o refresh
  protected synchronized void refresh()
Refreshs each of the clients
 o addClient
  public void addClient(PollCallback client)
Adds a client
 o removeClient
  public boolean removeClient(PollCallback client)
Remotes a client
 o sync
  public synchronized void sync()
Poll all clients NOW!
 o run
  public void run()
poll and wait loop
Overrides:
run in class Thread

All Packages  Class Hierarchy  This Package  Previous  Next  Index