Search in sources :

Example 1 with Refresher

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);
    }
}
Also used : Refresher(com.github.wolfie.refresher.Refresher)

Example 2 with 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);
}
Also used : Refresher(com.github.wolfie.refresher.Refresher)

Aggregations

Refresher (com.github.wolfie.refresher.Refresher)2