RunnableDNSResolverTask, DNSStateTask, RecordReaper, Responderpublic abstract class DNSTask extends TimerTask
| Modifier | Constructor | Description |
|---|---|---|
protected |
DNSTask(JmDNSImpl jmDNSImpl) |
| Modifier and Type | Method | Description |
|---|---|---|
DNSOutgoing |
addAdditionalAnswer(DNSOutgoing out,
DNSIncoming in,
DNSRecord rec) |
Add an additional answer to the record.
|
DNSOutgoing |
addAnswer(DNSOutgoing out,
DNSIncoming in,
DNSRecord rec) |
Add an answer if it is not suppressed.
|
DNSOutgoing |
addAnswer(DNSOutgoing out,
DNSRecord rec,
long now) |
Add an answer to the message.
|
DNSOutgoing |
addAuthoritativeAnswer(DNSOutgoing out,
DNSRecord rec) |
Add an authoritative answer to the message.
|
DNSOutgoing |
addQuestion(DNSOutgoing out,
DNSQuestion rec) |
Add a question to the message.
|
JmDNSImpl |
getDns() |
Return the DNS associated with this task.
|
abstract String |
getName() |
Return this task name.
|
abstract void |
start(Timer timer) |
Start this task.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancel, run, scheduledExecutionTimeprotected DNSTask(JmDNSImpl jmDNSImpl)
jmDNSImpl - public JmDNSImpl getDns()
public abstract void start(Timer timer)
timer - task timer.public abstract String getName()
public DNSOutgoing addQuestion(DNSOutgoing out, DNSQuestion rec) throws IOException
out - outgoing messagerec - DNS questionIOExceptionpublic DNSOutgoing addAnswer(DNSOutgoing out, DNSIncoming in, DNSRecord rec) throws IOException
out - outgoing messagein - incoming requestrec - DNS record answerIOExceptionpublic DNSOutgoing addAnswer(DNSOutgoing out, DNSRecord rec, long now) throws IOException
out - outgoing messagerec - DNS record answernow - IOExceptionpublic DNSOutgoing addAuthoritativeAnswer(DNSOutgoing out, DNSRecord rec) throws IOException
out - outgoing messagerec - DNS record answerIOExceptionpublic DNSOutgoing addAdditionalAnswer(DNSOutgoing out, DNSIncoming in, DNSRecord rec) throws IOException
out - outgoing messagein - incoming requestrec - DNS record answerIOExceptionCopyright © 2002–2018 JmDNS. All rights reserved.