Package javax.jmdns.impl.tasks.resolver
Class DNSResolverTask
java.lang.Object
java.util.TimerTask
javax.jmdns.impl.tasks.DNSTask
javax.jmdns.impl.tasks.resolver.DNSResolverTask
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
ServiceInfoResolver,ServiceResolver,TypeResolver
This is the root class for all resolver tasks.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract DNSOutgoingaddAnswers(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 DNSOutgoingaddQuestions(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 StringReturns a description of the resolver for debuggingvoidrun()voidStart this task.toString()Methods inherited from class javax.jmdns.impl.tasks.DNSTask
addAdditionalAnswer, addAnswer, addAnswer, addAuthoritativeAnswer, addQuestion, getDns, getNameMethods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Field Details
-
logger
private static org.slf4j.Logger logger -
_count
protected int _countCounts the number of queries being sent.
-
-
Constructor Details
-
DNSResolverTask
- Parameters:
jmDNSImpl-
-
-
Method Details
-
toString
-
start
Description copied from class:DNSTaskStart this task. -
run
public void run() -
addQuestions
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.- Parameters:
out- outgoing message- Returns:
- the outgoing message.
- Throws:
IOException
-
addAnswers
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.- Parameters:
out- outgoing message- Returns:
- the outgoing message.
- Throws:
IOException
-
description
Returns a description of the resolver for debugging- Returns:
- resolver description
-