Interface StreamConnectionFactory


  • public interface StreamConnectionFactory
    A factory which generates new StreamConnections when a new connection is opened.
    • Method Detail

      • getNewConnection

        @Nullable
        StreamConnection getNewConnection​(java.net.InetAddress inetAddress,
                                          int port)
        Returns a new handler or null to have the connection close.
        Parameters:
        inetAddress - The client's (IP) address
        port - The remote port on the client side