public void schedule ( JobDetail jobDetail , Trigger trigger ) throws MangooSchedulerException { Objects . requireNonNull ( jobDetail , Required . JOB_DETAIL . toString ( ) ) ; Objects . requireNonNull ( trigger , Required . TRIGGER . toString ( ) ) ; Objects . requireNonNull ( this . quartzScheduler , Required . SCHEDULER . toString ( ) ) ; try { this . quartzScheduler . scheduleJob ( jobDetail , trigger ) ; } catch ( final SchedulerException e ) { throw new MangooSchedulerException ( e ) ; } }
Adds a new job with a given JobDetail and Trigger to the scheduler