use of com.github.wolfie.refresher.Refresher in project opennms by OpenNMS.
the class TopologyUI method setupAutoRefresher.
private void setupAutoRefresher() {
if (m_graphContainer.hasAutoRefreshSupport()) {
Refresher refresher = new Refresher();
// ask every <interval> seconds for changes
refresher.setRefreshInterval((int) m_graphContainer.getAutoRefreshSupport().getInterval() * 1000);
refresher.addListener(new DynamicUpdateRefresher());
addExtension(refresher);
}
}
use of com.github.wolfie.refresher.Refresher in project opennms by OpenNMS.
the class NodeMapsApplication method addRefresher.
private void addRefresher() {
final Refresher refresher = new Refresher();
refresher.setRefreshInterval(REFRESH_INTERVAL);
refresher.addListener((theRefresher) -> m_nodeMapComponent.refresh());
addExtension(refresher);
}
Aggregations