javax.jmdns.impl.tasks
Class Announcer

java.lang.Object
  extended by java.util.TimerTask
      extended by javax.jmdns.impl.tasks.DNSTask
          extended by javax.jmdns.impl.tasks.Announcer
All Implemented Interfaces:
java.lang.Runnable

public class Announcer
extends DNSTask

The Announcer sends an accumulated query of all announces, and advances the state of all serviceInfos, for which it has sent an announce. The Announcer also sends announcements and advances the state of JmDNS itself.

When the announcer has run two times, it finishes.


Field Summary
 
Fields inherited from class javax.jmdns.impl.tasks.DNSTask
_jmDNSImpl
 
Constructor Summary
Announcer(JmDNSImpl jmDNSImpl)
           
 
Method Summary
 boolean cancel()
           
 void run()
           
 void start(java.util.Timer timer)
           
 
Methods inherited from class java.util.TimerTask
scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Announcer

public Announcer(JmDNSImpl jmDNSImpl)
Method Detail

start

public void start(java.util.Timer timer)

cancel

public boolean cancel()
Overrides:
cancel in class java.util.TimerTask

run

public void run()
Specified by:
run in interface java.lang.Runnable
Specified by:
run in class java.util.TimerTask