private long getDashboardRefreshRate ( final DashboardConfig selectedDashboardConfig ) { if ( selectedDashboardConfig == null ) { return DEFAULT_DASHBOARD_REFRESH_RATE ; } return TimeUnit . SECONDS . toMillis ( selectedDashboardConfig . getRefresh ( ) ) ; }
Returns dashboard refresh rate in ms . Used at UI for refreshing the dashboard .