Interface DnsCnameCache

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void cache​(String hostname, String cname, long originalTtl, EventLoop loop)
      Caches a cname entry that should be used for the given hostname.
      void clear()
      Clears all cached nameservers.
      boolean clear​(String hostname)
      Clears the cached nameservers for the specified hostname.
      String get​(String hostname)
      Returns the cached cname for the given hostname.
    • Method Detail

      • get

        String get​(String hostname)
        Returns the cached cname for the given hostname.
        Parameters:
        hostname - the hostname
        Returns:
        the cached entries or an null if none.
      • cache

        void cache​(String hostname,
                   String cname,
                   long originalTtl,
                   EventLoop loop)
        Caches a cname entry that should be used for the given hostname.
        Parameters:
        hostname - the hostname
        cname - the cname mapping.
        originalTtl - the TTL as returned by the DNS server
        loop - the EventLoop used to register the TTL timeout
      • clear

        void clear()
        Clears all cached nameservers.
        See Also:
        clear(String)
      • clear

        boolean clear​(String hostname)
        Clears the cached nameservers for the specified hostname.
        Returns:
        true if and only if there was an entry for the specified host name in the cache and it has been removed by this method