Package javax.jmdns.impl.tasks.resolver
Class DNSResolverTask
- java.lang.Object
-
- java.util.TimerTask
-
- javax.jmdns.impl.tasks.DNSTask
-
- javax.jmdns.impl.tasks.resolver.DNSResolverTask
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
ServiceInfoResolver,ServiceResolver,TypeResolver
public abstract class DNSResolverTask extends DNSTask
This is the root class for all resolver tasks.
-
-
Constructor Summary
Constructors Constructor Description DNSResolverTask(JmDNSImpl jmDNSImpl)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract DNSOutgoingaddAnswers(DNSOutgoing out)Overridden by subclasses to add questions to the message.
Note: Because of message size limitation the returned message may be different than the message parameter.protected abstract DNSOutgoingaddQuestions(DNSOutgoing out)Overridden by subclasses to add questions to the message.
Note: Because of message size limitation the returned message may be different than the message parameter.protected abstract java.lang.Stringdescription()Returns a description of the resolver for debuggingvoidrun()voidstart(java.util.Timer timer)Start this task.java.lang.StringtoString()-
Methods inherited from class javax.jmdns.impl.tasks.DNSTask
addAdditionalAnswer, addAnswer, addAnswer, addAuthoritativeAnswer, addQuestion, getDns, getName
-
-
-
-
Constructor Detail
-
DNSResolverTask
public DNSResolverTask(JmDNSImpl jmDNSImpl)
- Parameters:
jmDNSImpl-
-
-
Method Detail
-
start
public void start(java.util.Timer timer)
Description copied from class:DNSTaskStart this task.
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable- Specified by:
runin classjava.util.TimerTask
-
addQuestions
protected abstract DNSOutgoing addQuestions(DNSOutgoing out) throws java.io.IOException
Overridden by subclasses to add questions to the message.
Note: Because of message size limitation the returned message may be different than the message parameter.- Parameters:
out- outgoing message- Returns:
- the outgoing message.
- Throws:
java.io.IOException
-
addAnswers
protected abstract DNSOutgoing addAnswers(DNSOutgoing out) throws java.io.IOException
Overridden by subclasses to add questions to the message.
Note: Because of message size limitation the returned message may be different than the message parameter.- Parameters:
out- outgoing message- Returns:
- the outgoing message.
- Throws:
java.io.IOException
-
description
protected abstract java.lang.String description()
Returns a description of the resolver for debugging- Returns:
- resolver description
-
-