create a simpleschedulebuilder set to repeat the given number of times - 1 with an interval of the given number of seconds . note : total count = 1 at start time + repeat count concode_field_sep int m_nMisfireInstruction concode_elem_sep long m_nInterval concode_elem_sep int m_nRepeatCount concode_field_sep SimpleScheduleBuilder withIntervalInHours concode_elem_sep SimpleScheduleBuilder simpleSchedule concode_elem_sep SimpleScheduleBuilder withMisfireHandlingInstructionIgnoreMisfires concode_elem_sep SimpleScheduleBuilder withIntervalInSeconds concode_elem_sep SimpleScheduleBuilder repeatMinutelyForTotalCount concode_elem_sep SimpleScheduleBuilder repeatMinutelyForTotalCount concode_elem_sep SimpleScheduleBuilder repeatForever concode_elem_sep SimpleScheduleBuilder withMisfireHandlingInstructionNowWithRemainingCount concode_elem_sep SimpleScheduleBuilder withMisfireHandlingInstructionFireNow concode_elem_sep SimpleScheduleBuilder repeatHourlyForever concode_elem_sep SimpleScheduleBuilder repeatHourlyForever concode_elem_sep SimpleTrigger build concode_elem_sep SimpleScheduleBuilder withMisfireHandlingInstructionNextWithExistingCount concode_elem_sep SimpleScheduleBuilder withMisfireHandlingInstructionNextWithRemainingCount concode_elem_sep SimpleScheduleBuilder repeatSecondlyForever concode_elem_sep SimpleScheduleBuilder repeatSecondlyForever concode_elem_sep SimpleScheduleBuilder withRepeatCount concode_elem_sep SimpleScheduleBuilder repeatHourlyForTotalCount concode_elem_sep SimpleScheduleBuilder repeatHourlyForTotalCount concode_elem_sep SimpleScheduleBuilder withIntervalInMinutes concode_elem_sep SimpleScheduleBuilder withMisfireHandlingInstructionNowWithExistingCount concode_elem_sep SimpleScheduleBuilder repeatMinutelyForever concode_elem_sep SimpleScheduleBuilder repeatMinutelyForever concode_elem_sep SimpleScheduleBuilder withIntervalInMilliseconds
SimpleScheduleBuilder function ( final int arg0 , final int arg1 ) { ValueEnforcer . isGT0 ( arg0 , "srini_string" ) ; return simpleSchedule ( ) . withIntervalInSeconds ( arg1 ) . withRepeatCount ( arg0 - 1 ) ; }