public class ThrottledRunLater extends Object implements Runnable
Platform.runLater(Runnable) which will do nothing if the previous
invocation of runLater didn't execute on the JavaFX UI thread yet. In this way you can avoid flooding
the event loop if you have a background thread that for whatever reason wants to update the UI very
frequently. Without this class you could end up bloating up memory usage and causing the UI to stutter
if the UI thread couldn't keep up with your background worker.| Constructor and Description |
|---|
ThrottledRunLater()
Created this way, the no-args runLater will execute this classes run method.
|
ThrottledRunLater(Runnable runnable)
Created this way, the no-args runLater will execute the given runnable.
|
public ThrottledRunLater()
public ThrottledRunLater(Runnable runnable)
Copyright © 2016. All rights reserved.