Class AsyncSocketFactory


  • public final class AsyncSocketFactory
    extends Object
    A factory for creating AsyncSocket objects.
    • Field Detail

      • logger

        private static final org.slf4j.Logger logger
        The Constant logger.
    • Constructor Detail

      • AsyncSocketFactory

        private AsyncSocketFactory()
        Prevent Instantiation.
    • Method Detail

      • createSocket

        public static Socket createSocket​(String server,
                                          int port,
                                          long timeout)
                                   throws IOException
        Creates a new AsyncSocket object.
        Parameters:
        server - the server
        port - the port
        timeout - the timeout
        Returns:
        the socket
        Throws:
        IOException - Signals that an I/O exception has occurred.