How can a Vaadin Framework application accomplish functionality similar to javascript’s setInterval were a client will potentially poll a server at a specified interval, the server will do some process and return some JSON to the client? Usually, with this flow, the setInterval would trigger a call to a PHP script on the server with parameters to use for the processing.
I’m wondering how one would would send params back to the server with Vaadin and trigger a process to run and return something.
For Server Push, can a server thread be created for each client connection and then continue running at an interval (perhaps with a TimerTask) to send any necessary data via push to the client? Is that the best practice or would that overload the server with threads?