Package javax.jmdns

Class JmmDNS.Factory

  • Enclosing interface:
    JmmDNS

    public static final class JmmDNS.Factory
    extends java.lang.Object
    JmmDNS.Factory enable the creation of new instance of JmmDNS.
    • Field Detail

      • _instance

        private static volatile JmmDNS _instance
      • _databaseClassDelegate

        private static final java.util.concurrent.atomic.AtomicReference<JmmDNS.Factory.ClassDelegate> _databaseClassDelegate
    • Constructor Detail

      • Factory

        private Factory()
    • Method Detail

      • newJmmDNS

        protected static JmmDNS newJmmDNS()
        Returns a new instance of JmmDNS using the class delegate if it exists.
        Returns:
        new instance of JmmDNS
      • getInstance

        public static JmmDNS getInstance()
        Return the instance of the Multihomed Multicast DNS.
        Returns:
        the JmmDNS
      • close

        public static void close()
                          throws java.io.IOException
        Closes the instance if still running and discard it.
        Throws:
        java.io.IOException