public class Task extends Object
Save the name of the task, the code block that is actually executed, the cron expression, and the information that is deferred.
It provides a stop method to stop yourself, at this point the task thread will stop and the execution will stop.
public Task(String name, CronExpression cronExpression, long delay)
Copyright © 2019. All rights reserved.