Class ServiceInfoResolver

  • All Implemented Interfaces:
    Runnable

    public class ServiceInfoResolver
    extends DNSResolverTask
    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.

    • Method Detail

      • getName

        public String getName()
        Description copied from class: DNSTask
        Return this task name.
        Specified by:
        getName in class DNSTask
        Returns:
        task name
      • addAnswers

        protected DNSOutgoing addAnswers​(DNSOutgoing out)
                                  throws IOException
        Description copied from class: DNSResolverTask
        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.
        Specified by:
        addAnswers in class DNSResolverTask
        Parameters:
        out - outgoing message
        Returns:
        the outgoing message.
        Throws:
        IOException
      • addQuestions

        protected DNSOutgoing addQuestions​(DNSOutgoing out)
                                    throws IOException
        Description copied from class: DNSResolverTask
        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.
        Specified by:
        addQuestions in class DNSResolverTask
        Parameters:
        out - outgoing message
        Returns:
        the outgoing message.
        Throws:
        IOException