When does response.getWriter (). Write write data to the browser?

when does response.getWriter (). Write write data to the browser?

    @RequestMapping("/testOutStream")
    public void testOutStream(HttpServletResponse response) throws IOException, InterruptedException {
        response.getWriter().println("test1");
        Thread.sleep(5000);
    }

doesn"t response.getWriter (). Write write data to the browser after being called? When the method is finished? I don"t know how it works inside.
ask the boss to help me with the answer.

The

method completes writing data, or else it will be written many times with one request, calling a write, in this place and calling a write in that place

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b372b4-2c07c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b372b4-2c07c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?