Class TreeValueUpdateThrottle<T>
- java.lang.Object
-
- org.phoebus.applications.pvtree.ui.TreeValueUpdateThrottle<T>
-
public class TreeValueUpdateThrottle<T> extends Object
Throttle for tree UI 'update' of a tree item valueStructure (new links) need to be represented to allow reacting to updates of their values, but the value updates itself can be throttled.
- Author:
- Kay Kasemir
-
-
Constructor Summary
Constructors Constructor Description TreeValueUpdateThrottle(Consumer<Collection<T>> updater)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
scheduleUpdate(T item)
Request a tree viewer 'update'void
shutdown()
-
-
-
Constructor Detail
-
TreeValueUpdateThrottle
public TreeValueUpdateThrottle(Consumer<Collection<T>> updater)
- Parameters:
updater
- Will be called with accumulated fields to update
-
-
Method Detail
-
scheduleUpdate
public void scheduleUpdate(T item)
Request a tree viewer 'update'- Parameters:
item
- Item to update
-
shutdown
public void shutdown()
-
-