private static void setCountIntervalValues ( TriggerInfo dto , TriggerBuilder < org . quartz . Trigger > builder ) { SimpleScheduleBuilder builderSc = SimpleScheduleBuilder . simpleSchedule ( ) ; if ( dto . getRepeatCount ( ) != 0 ) builderSc . withRepeatCount ( dto . getRepeatCount ( ) ) ; if ( dto . getRepeatInterval ( ) > 0 ) builderSc . withIntervalInMilliseconds ( dto . getRepeatInterval ( ) ) ; builder . withSchedule ( builderSc ) ; }
Helps to set count and intervals