Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Problem in paintContent(PaintTarget target)...

Asela Neligama
1 decade ago Sep 08, 2010 5:30am
Artur Signell
1 decade ago Sep 08, 2010 5:37am
Asela Neligama
1 decade ago Sep 08, 2010 5:47am
Artur Signell
1 decade ago Sep 08, 2010 6:17am

In short, no. You can't get data to the client without sending the data.

The refresher itself does not use any CPU but if you set the polling interval to low it will make a lot of requests. Especially if you have many simultaneous users it can cause a high load. Make the update intervals longer and you will get less server traffic. 50ms is a really short time and will probably cause the client to constantly check for updates, fetch the updates and update the component on screen.