public abstract class DNSResolverTask extends DNSTask
Modifier and Type | Field and Description |
---|---|
protected int |
_count
Counts the number of queries being sent.
|
Constructor and Description |
---|
DNSResolverTask(JmDNSImpl jmDNSImpl) |
Modifier and Type | Method and Description |
---|---|
protected abstract DNSOutgoing |
addAnswers(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 DNSOutgoing |
addQuestions(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.String |
description()
Returns a description of the resolver for debugging
|
void |
run() |
void |
start(java.util.Timer timer)
Start this task.
|
java.lang.String |
toString() |
addAdditionalAnswer, addAnswer, addAnswer, addAuthoritativeAnswer, addQuestion, getDns, getName
public DNSResolverTask(JmDNSImpl jmDNSImpl)
jmDNSImpl
- public void start(java.util.Timer timer)
DNSTask
public void run()
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
protected abstract DNSOutgoing addQuestions(DNSOutgoing out) throws java.io.IOException
out
- outgoing messagejava.io.IOException
protected abstract DNSOutgoing addAnswers(DNSOutgoing out) throws java.io.IOException
out
- outgoing messagejava.io.IOException
protected abstract java.lang.String description()