Class DNSResolverTask

    • Field Detail

      • _count

        protected int _count
        Counts the number of queries being sent.
    • Constructor Detail

      • DNSResolverTask

        public DNSResolverTask​(JmDNSImpl jmDNSImpl)
        Parameters:
        jmDNSImpl -
    • Method Detail

      • start

        public void start​(Timer timer)
        Description copied from class: DNSTask
        Start this task.
        Specified by:
        start in class DNSTask
        Parameters:
        timer - task timer.
      • addQuestions

        protected abstract DNSOutgoing addQuestions​(DNSOutgoing out)
                                             throws IOException
        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

        protected abstract DNSOutgoing addAnswers​(DNSOutgoing out)
                                           throws IOException
        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

        protected abstract String description()
        Returns a description of the resolver for debugging
        Returns:
        resolver description