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, getNamepublic DNSResolverTask(JmDNSImpl jmDNSImpl)
jmDNSImpl - public void start(java.util.Timer timer)
DNSTaskpublic void run()
run in interface java.lang.Runnablerun in class java.util.TimerTaskprotected abstract DNSOutgoing addQuestions(DNSOutgoing out) throws java.io.IOException
out - outgoing messagejava.io.IOExceptionprotected abstract DNSOutgoing addAnswers(DNSOutgoing out) throws java.io.IOException
out - outgoing messagejava.io.IOExceptionprotected abstract java.lang.String description()