code: @Route(method = HttpMethod.GET, uri = "/live")
      public Result live() throws IOException {
          PipedInputStream in = new PipedInputStream();
          final PipedOutputStream out = new PipedOutputStream(in);
          ///...
          new Thread(
                  new Runnable() {
                      Random random = new Random();
  
                      public void run() {
                          for (int i = 0; i < 50; i++) {
                              try {
                                  String s = random.nextInt() + "\n";
                                  out.write(s.getBytes());
                                  Thread.sleep(100);
                              } catch (Exception e) { //NOSONAR
                                  e.printStackTrace();
                              }
                          }
                          try {
                              out.close();
                          } catch (IOException e) { //NOSONAR
                              // ignore.
                          }
                      }
                  }
          ).start();
          return ok(in).as(MimeTypes.TEXT);
      }
docs: tag::live-data[]