Interface NumAPI

  • All Known Implementing Classes:
    NumAPIImpl

    public interface NumAPI
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      NumAPIContext begin​(java.lang.String moduleId, java.lang.String numId, int timeoutMillis)
      Initialise a new NumAPIContextBase object for a specific module/NUM ID combination.
      java.util.concurrent.Future<java.lang.String> retrieveNumRecord​(NumAPIContext ctx, NumAPICallbacks handler, int timeoutMillis)
      This method uses the module context and the supplied Required User Variable values to obtain a fully expanded JSON object from DNS.
      void setPopulatorTopLevelZone​(java.lang.String populatorTopLevelZone)
      Override the populator top-level zone from 'num.uk' to 'myzone.com' for example.
      void setTCPOnly​(boolean flag)
      Tell dnsjava to use TCP and not UDP.
      void setTopLevelZone​(java.lang.String zone)
      Override the top-level zone from 'num.uk' to 'myzone.com' for example.
      void shutdown()
      Stop any outstanding DNS queries still in the Executor.