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);
        }
    }
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

@param jobDetail The JobDetail for the Job
@param trigger The Trigger for the job
@throws MangooSchedulerException when accessing the scheduler results in an error