mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-01-25 20:04:01 +00:00
update JDA and jda Utilities version
fixed typos in the code
This commit is contained in:
@@ -10,7 +10,7 @@ public class SchedulerJobConverter {
|
||||
/**
|
||||
* Converts a {@link SchedulerJobProperties} instance to a usable {@link SchedulerJob} instance
|
||||
* @param properties The instance directly coming from a property file
|
||||
* @return A instanc eof {@link SchedulerJob} which represents an instance from the database
|
||||
* @return A instance eof {@link SchedulerJob} which represents an instance from the database
|
||||
*/
|
||||
public SchedulerJob fromJobProperties(SchedulerJobProperties properties) {
|
||||
return SchedulerJob
|
||||
|
||||
@@ -8,7 +8,7 @@ import org.springframework.stereotype.Repository;
|
||||
import javax.persistence.QueryHint;
|
||||
|
||||
/**
|
||||
* Repository repsonsible to access the stored job configuration in the database
|
||||
* Repository responsible to access the stored job configuration in the database
|
||||
*/
|
||||
@Repository
|
||||
public interface SchedulerJobRepository extends JpaRepository<SchedulerJob, Long> {
|
||||
|
||||
@@ -57,7 +57,7 @@ public class SchedulerServiceBean implements SchedulerService {
|
||||
boolean recurringJob = isRecurringJob(schedulerJob);
|
||||
jobDetail = scheduleCreator.createJob((Class<? extends QuartzJobBean>) Class.forName(schedulerJob.getClazz()),
|
||||
!recurringJob, context, schedulerJob.getName(), schedulerJob.getGroupName(), schedulerJob.isRecovery());
|
||||
// if its a cron job, we can schedule it directly, otherwise we just make the scheduler aware of its existance
|
||||
// if its a cron job, we can schedule it directly, otherwise we just make the scheduler aware of its existence
|
||||
// and trigger it later
|
||||
if(recurringJob) {
|
||||
Trigger trigger = scheduleCreator.createBasicCronTrigger(new Date(),
|
||||
|
||||
@@ -26,7 +26,7 @@ public interface SchedulerService {
|
||||
|
||||
/**
|
||||
* Removes a job from the scheduler.
|
||||
* @param triggerKey The key of the trigger to unschedule
|
||||
* @param triggerKey The key of the trigger to unSchedule
|
||||
* @return if the job was found and unscheduled
|
||||
*/
|
||||
boolean unScheduleJob(String triggerKey);
|
||||
|
||||
Reference in New Issue
Block a user