javax.jmdns.impl.tasks
Class ServiceResolver

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

public class ServiceResolver
extends DNSTask

The ServiceResolver queries three times consecutively for services of a given type, and then removes itself from the timer.

The ServiceResolver will run only if JmDNS is in state ANNOUNCED. REMIND: Prevent having multiple service resolvers for the same type in the timer queue.


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

Constructor Detail

ServiceResolver

public ServiceResolver(JmDNSImpl jmDNSImpl,
                       java.lang.String type)
Method Detail

start

public void start(java.util.Timer timer)

run

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