Package javax.jmdns.impl.tasks.resolver
Class ServiceInfoResolver
java.lang.Object
java.util.TimerTask
javax.jmdns.impl.tasks.DNSTask
javax.jmdns.impl.tasks.resolver.DNSResolverTask
javax.jmdns.impl.tasks.resolver.ServiceInfoResolver
- All Implemented Interfaces:
Runnable
The ServiceInfoResolver queries up to three times consecutively for a service info, and then removes itself from the timer.
The ServiceInfoResolver will run only if JmDNS is in state ANNOUNCED. REMIND: Prevent having multiple service resolvers for the same info in the timer queue.
-
Field Summary
FieldsFields inherited from class javax.jmdns.impl.tasks.resolver.DNSResolverTask
_count -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 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.booleancancel()protected StringReturns a description of the resolver for debugginggetName()Return this task name.Methods inherited from class javax.jmdns.impl.tasks.resolver.DNSResolverTask
run, start, toStringMethods inherited from class javax.jmdns.impl.tasks.DNSTask
addAdditionalAnswer, addAnswer, addAnswer, addAuthoritativeAnswer, addQuestion, getDnsMethods inherited from class java.util.TimerTask
scheduledExecutionTime
-
Field Details
-
_info
-
-
Constructor Details
-
ServiceInfoResolver
-
-
Method Details
-
getName
Description copied from class:DNSTaskReturn this task name. -
cancel
public boolean cancel() -
addAnswers
Description copied from class:DNSResolverTaskOverridden by subclasses to add questions to the message.
Note: Because of message size limitation the returned message may be different than the message parameter.- Specified by:
addAnswersin classDNSResolverTask- Parameters:
out- outgoing message- Returns:
- the outgoing message.
- Throws:
IOException
-
addQuestions
Description copied from class:DNSResolverTaskOverridden by subclasses to add questions to the message.
Note: Because of message size limitation the returned message may be different than the message parameter.- Specified by:
addQuestionsin classDNSResolverTask- Parameters:
out- outgoing message- Returns:
- the outgoing message.
- Throws:
IOException
-
description
Description copied from class:DNSResolverTaskReturns a description of the resolver for debugging- Specified by:
descriptionin classDNSResolverTask- Returns:
- resolver description
-