Class MacOSDnsServerAddressStreamProvider

    • Field Detail

      • RESOLVER_COMPARATOR

        private static final java.util.Comparator<DnsResolver> RESOLVER_COMPARATOR
      • UNAVAILABILITY_CAUSE

        private static final java.lang.Throwable UNAVAILABILITY_CAUSE
      • REFRESH_INTERVAL

        private static final long REFRESH_INTERVAL
      • currentMappings

        private volatile java.util.Map<java.lang.String,​DnsServerAddresses> currentMappings
      • lastRefresh

        private final java.util.concurrent.atomic.AtomicLong lastRefresh
    • Constructor Detail

      • MacOSDnsServerAddressStreamProvider

        public MacOSDnsServerAddressStreamProvider()
    • Method Detail

      • loadNativeLibrary

        private static void loadNativeLibrary()
      • isAvailable

        public static boolean isAvailable()
      • ensureAvailability

        public static void ensureAvailability()
      • unavailabilityCause

        public static java.lang.Throwable unavailabilityCause()
      • retrieveCurrentMappings

        private static java.util.Map<java.lang.String,​DnsServerAddresses> retrieveCurrentMappings()