@Nonnull
  public static TriggerKey schedule (@Nonnull final SimpleScheduleBuilder aScheduleBuilder)
  {
    ValueEnforcer.notNull (aScheduleBuilder, "ScheduleBuilder");

    final ICommonsMap <String, Object> aJobDataMap = new CommonsHashMap <> ();

    return GlobalQuartzScheduler.getInstance ()
                                .scheduleJob (ReIndexJob.class.getName (),
                                              JDK8TriggerBuilder.newTrigger ()
                                                                .startAt (PDTFactory.getCurrentLocalDateTime ()
                                                                                    .plusSeconds (5))
                                                                .withSchedule (aScheduleBuilder),
                                              ReIndexJob.class,
                                              aJobDataMap);
  }
@ Nonnull public static TriggerKey schedule ( @ Nonnull final SimpleScheduleBuilder aScheduleBuilder ) { ValueEnforcer . notNull ( aScheduleBuilder , "ScheduleBuilder" ) ; final ICommonsMap < String , Object > aJobDataMap = new CommonsHashMap < > ( ) ; return GlobalQuartzScheduler . getInstance ( ) . scheduleJob ( ReIndexJob . class . getName ( ) , JDK8TriggerBuilder . newTrigger ( ) . startAt ( PDTFactory . getCurrentLocalDateTime ( ) . plusSeconds ( 5 ) ) . withSchedule ( aScheduleBuilder ) , ReIndexJob . class , aJobDataMap ) ; }
@param aScheduleBuilder
The schedule builder to be used. May not be <code>null</code>.
Example:
<code>SimpleScheduleBuilder.repeatMinutelyForever (1)</code>
@return The created trigger key for further usage. Never <code>null</code>.