monitoring-service/src/main/java/com/epam/pipeline/monitor/monitoring/AbstractSchedulingService.java
protected void scheduleFixedDelay(final Runnable task, final Integer rate, final String taskName) {
        if (Objects.isNull(rate)) {
            log.debug("Scheduling rate cannot be found for task '{}'", taskName);
            return;
        }
        log.info("Scheduled {} with a rate of {} ms", taskName, rate);
        scheduledFuture.set(scheduler.scheduleWithFixedDelay(task, rate));
    }
/**
     * Schedule a task with a fixed delay
     * @param task a task to schedule
     * @param rate the execution rate
     * @param taskName a name of the task
     */
Schedule a task with a fixed delay
@param task a task to schedule
@param rate the execution rate
@param taskName a name of the task
Schedule a task with a fixed delay @param task a task to schedule @param rate the execution rate @param taskName a name of the task
protected void scheduleFixedDelay(final Runnable task, final Integer rate, final String taskName) {
        if (Objects.isNull(rate)) {
            log.debug("Scheduling rate cannot be found for task '{}'", taskName);
            return;
        }
        log.info("Scheduled {} with a rate of {} ms", taskName, rate);
        scheduledFuture.set(scheduler.scheduleWithFixedDelay(task, rate));
    }
protected void scheduleFixedDelay ( final Runnable task , final Integer rate , final String taskName ) { if ( Objects . isNull ( rate ) ) { log . debug ( "Scheduling rate cannot be found for task '{}'" , taskName ) ; return ; } log . info ( "Scheduled {} with a rate of {} ms" , taskName , rate ) ; scheduledFuture . set ( scheduler . scheduleWithFixedDelay ( task , rate ) ) ; }
Schedule a task with a fixed delay
 @param task a task to schedule
 @param rate the execution rate
 @param taskName a name of the task
Schedule a task with a fixed delay @param task a task to schedule @param rate the execution rate @param taskName a name of the task