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 String |
description()
Returns a description of the resolver for debugging
|
void |
run() |
void |
start(Timer timer)
Start this task.
|
String |
toString() |
addAdditionalAnswer, addAnswer, addAnswer, addAuthoritativeAnswer, addQuestion, getDns, getNamecancel, scheduledExecutionTimepublic DNSResolverTask(JmDNSImpl jmDNSImpl)
jmDNSImpl - protected abstract DNSOutgoing addQuestions(DNSOutgoing out) throws IOException
out - outgoing messageIOExceptionprotected abstract DNSOutgoing addAnswers(DNSOutgoing out) throws IOException
out - outgoing messageIOExceptionprotected abstract String description()
Copyright © 2002–2017 JmDNS. All rights reserved.