public abstract class DNSTask extends TimerTask
Modifier | Constructor and Description |
---|---|
protected |
DNSTask(JmDNSImpl jmDNSImpl) |
Modifier and Type | Method and 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() |
cancel, run, scheduledExecutionTime
protected 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 questionIOException
public DNSOutgoing addAnswer(DNSOutgoing out, DNSIncoming in, DNSRecord rec) throws IOException
out
- outgoing messagein
- incoming requestrec
- DNS record answerIOException
public DNSOutgoing addAnswer(DNSOutgoing out, DNSRecord rec, long now) throws IOException
out
- outgoing messagerec
- DNS record answernow
- IOException
public DNSOutgoing addAuthoritativeAnswer(DNSOutgoing out, DNSRecord rec) throws IOException
out
- outgoing messagerec
- DNS record answerIOException
public DNSOutgoing addAdditionalAnswer(DNSOutgoing out, DNSIncoming in, DNSRecord rec) throws IOException
out
- outgoing messagein
- incoming requestrec
- DNS record answerIOException
Copyright © 2002–2019 JmDNS. All rights reserved.