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);
}
Aggregations