monitoring-service/src/main/java/com/epam/pipeline/monitor/monitoring/AbstractSchedulingService.java
protected void scheduleFixedDelay(final Runnable task, final String ratePreferenceName, final String taskName) {
        scheduleFixedDelay(task, client.getIntPreference(ratePreferenceName), taskName);
        preferencesService.getObservablePreference(ratePreferenceName)
                .subscribe(newRate -> rescheduleFixedDelay(task, taskName, Integer.parseInt(newRate)));
    }
/**
     * Schedule a task with a fixed delay
     * @param task a task to schedule
     * @param ratePreferenceName a preference name that contains execution rate
     * @param taskName a name of the task
     */
Schedule a task with a fixed delay
@param task a task to schedule
@param ratePreferenceName a preference name that contains execution rate
@param taskName a name of the task
Schedule a task with a fixed delay @param task a task to schedule @param ratePreferenceName a preference name that contains execution rate @param taskName a name of the task
protected void scheduleFixedDelay(final Runnable task, final String ratePreferenceName, final String taskName) {
        scheduleFixedDelay(task, client.getIntPreference(ratePreferenceName), taskName);
        preferencesService.getObservablePreference(ratePreferenceName)
                .subscribe(newRate -> rescheduleFixedDelay(task, taskName, Integer.parseInt(newRate)));
    }
protected void scheduleFixedDelay ( final Runnable task , final String ratePreferenceName , final String taskName ) { scheduleFixedDelay ( task , client . getIntPreference ( ratePreferenceName ) , taskName ) ; preferencesService . getObservablePreference ( ratePreferenceName ) . subscribe ( newRate -> rescheduleFixedDelay ( task , taskName , Integer . parseInt ( newRate ) ) ) ; }
Schedule a task with a fixed delay
 @param task a task to schedule
 @param ratePreferenceName a preference name that contains execution rate
 @param taskName a name of the task
Schedule a task with a fixed delay @param task a task to schedule @param ratePreferenceName a preference name that contains execution rate @param taskName a name of the task