That is pretty much the way it works on most cruise lines in the U.S. as well. They will quarantine passengers until the virus passes. However, I have been on ships where the quarantine process was not utilized and the outbreak seemed to escalate much faster. Of course, many folks will not speak up if they realize they are going to be quarantined for 48 to 72 hours during their vacation.
It is a difficult situation and I think the best defense is being proactive in reducing the risk of exposure.