MCPcopy Create free account
hub / github.com/DerekYRC/mini-claude-code / CronJob

Class CronJob

src/main/java/org/miniclaudecode/cron/CronJob.java:8–41  ·  view source on GitHub ↗

s12 cron 任务数据类。 字段对齐参考项目 s14 CronJob dataclass。

Source from the content-addressed store, hash-verified

6 * 字段对齐参考项目 s14 CronJob dataclass。
7 */
8public class CronJob {
9
10 private String id; // cron job ID,例如 cron_2f4a91bc
11 private String cron; // 五段式 cron 表达式
12 private String prompt; // 触发后注入给 Agent 的文本
13 private boolean recurring; // true=周期任务,false=一次性
14 private boolean durable; // true=持久化到 .scheduled_tasks.json
15
16 public CronJob() {
17 }
18
19 public CronJob(String id, String cron, String prompt, boolean recurring, boolean durable) {
20 this.id = id;
21 this.cron = cron;
22 this.prompt = prompt;
23 this.recurring = recurring;
24 this.durable = durable;
25 }
26
27 public String getId() { return id; }
28 public void setId(String id) { this.id = id; }
29
30 public String getCron() { return cron; }
31 public void setCron(String cron) { this.cron = cron; }
32
33 public String getPrompt() { return prompt; }
34 public void setPrompt(String prompt) { this.prompt = prompt; }
35
36 public boolean isRecurring() { return recurring; }
37 public void setRecurring(boolean recurring) { this.recurring = recurring; }
38
39 public boolean isDurable() { return durable; }
40 public void setDurable(boolean durable) { this.durable = durable; }
41}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected