Class DNSResolverTask

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int _count
      Counts the number of queries being sent.
      private static org.slf4j.Logger logger  
    • Field Detail

      • logger

        private static org.slf4j.Logger logger
      • _count

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

      • DNSResolverTask

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

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class DNSTask
      • start

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

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Specified by:
        run in class java.util.TimerTask
      • addQuestions

        protected abstract DNSOutgoing addQuestions​(DNSOutgoing out)
                                             throws java.io.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:
        java.io.IOException
      • addAnswers

        protected abstract DNSOutgoing addAnswers​(DNSOutgoing out)
                                           throws java.io.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:
        java.io.IOException
      • description

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