public static <Request extends AbstractRequest, Response extends AbstractResponse> SocketConnection<Request, Response> createServerConnection(int defaultPort, int attempts, RequestResponseExternalizerFactory<Request, Response> factory) { return new ServerSocketConnectionImpl<Request, Response>(defaultPort, attempts, factory); }
public static <Request extends AbstractRequest, Response extends AbstractResponse> SocketConnection<Request, Response> createServerConnection(int defaultPort, RequestResponseExternalizerFactory<Request, Response> factory) { return new ServerSocketConnectionImpl<Request, Response>(defaultPort, 1, factory); }