Last active
August 29, 2015 14:14
-
-
Save msakamoto-sf/733aa7a2d0b461766b77 to your computer and use it in GitHub Desktop.
get "networkaddress.cache.ttl" and "networkaddress.cache.negative.ttl" for your environment. see java.net.InetAddress javadoc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sun.net.InetAddressCachePolicy; | |
// see: https://docs.oracle.com/javase/jp/8/api/java/net/InetAddress.html | |
// see: https://github.com/openjdk-mirror/jdk7u-jdk/blob/master/src/share/classes/sun/net/InetAddressCachePolicy.java | |
// for (Open/Oralce) JRE 7-8 | |
// "networkaddress.cache.ttl" | |
println InetAddressCachePolicy.cachePolicy | |
// "networkaddress.cache.negative.ttl" | |
println InetAddressCachePolicy.negativeCachePolicy | |
println InetAddressCachePolicy.propertySet | |
println InetAddressCachePolicy.propertyNegativeSet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment