Class ScheduledJob


  • public class ScheduledJob
    extends Object
    A job which runs via the scheduler.
    • Constructor Detail

      • ScheduledJob

        @Deprecated
        public ScheduledJob​(@NotNull
                            @NotNull String name,
                            @NotNull
                            @NotNull String groupName,
                            @Nullable
                            @Nullable Date nextScheduledTime)
        Deprecated.
        since 5.14 use ScheduledJob(JobKey, Date) instead
        Parameterized constructor.
        Parameters:
        name - the name of the job
        groupName - the name of the group the job belongs to
        nextScheduledTime - the next time the job is scheduled to run
      • ScheduledJob

        public ScheduledJob​(@NotNull
                            @NotNull org.quartz.JobKey jobKey,
                            Date nextScheduledTime)
    • Method Detail

      • getName

        @Deprecated
        @NotNull
        public @NotNull String getName()
        Deprecated.
        since 5.14 use getJobKey() instead
        Gets the name of the job.
        Returns:
        the name
      • getGroupName

        @Deprecated
        @NotNull
        public @NotNull String getGroupName()
        Deprecated.
        since 5.14 use getJobKey() instead
        Gets the name of the group the job belongs to.
        Returns:
        the group name
      • getNextScheduledTime

        @Nullable
        public @Nullable Date getNextScheduledTime()
        Gets the next scheduled time the job will run.
        Returns:
        the next scheduled time
      • getJobKey

        public org.quartz.JobKey getJobKey()