Class InetAddressCacheUtilForJdk8Minus


  • public class InetAddressCacheUtilForJdk8Minus
    extends Object
    Util class to manipulate dns cache for JDK 8-.

    dns cache is InetAddress.Cache#cache in InetAddress#addressCache.

    Caution:
    Manipulation on InetAddress#addressCache MUST be guarded by InetAddress#addressCache to avoid multithreading problem, you can see the implementation of InetAddress to confirm this (See Also lists key code of InetAddress related to this point).

    Author:
    Jerry Lee (oldratlee at gmail dot com)
    See Also:
    InetAddress, InetAddress#addressCache, InetAddress.CacheEntry, InetAddress#cacheInitIfNeeded(), InetAddress#cacheAddresses(String, InetAddress[], boolean)