Search in sources :

Example 1 with RefreshingService

use of com.exalttech.trex.ui.views.services.RefreshingService in project trex-stateless-gui by cisco-system-traffic-generator.

the class Dashboard method initialize.

@Override
public void initialize(URL location, ResourceBundle resources) {
    refreshingService = new RefreshingService();
    refreshingService.setPeriod(Duration.seconds(Constants.REFRESH_ONE_INTERVAL_SECONDS));
    refreshingService.setOnSucceeded(this::handleUpdate);
    refreshingService.start();
    Initialization.initializeCloseEvent(root, this::onWindowCloseRequest);
}
Also used : RefreshingService(com.exalttech.trex.ui.views.services.RefreshingService)

Aggregations

RefreshingService (com.exalttech.trex.ui.views.services.RefreshingService)1