|
| abstract void | execute () |
| void | execute (JobExecutionContext jobExecutionContext) |
Definition at line 6 of file Job.java.
◆ Job()
| com.runehive.game.world.cronjobs.Job.Job |
( |
String | name | ) |
|
|
protected |
◆ execute() [1/2]
| abstract void com.runehive.game.world.cronjobs.Job.execute |
( |
| ) |
|
|
abstract |
◆ execute() [2/2]
| void com.runehive.game.world.cronjobs.Job.execute |
( |
JobExecutionContext | jobExecutionContext | ) |
|
Definition at line 15 of file Job.java.
15 {
16 System.out.println("Firing " + name + " job");
17
18 final Job job = this;
19 World.schedule(1, () -> {
20 try {
21 job.execute();
22 } catch (Exception e) {
23 System.err.println("An error occurred in " + job.name + " job");
24 }
25 });
26 }
References execute(), Job(), name, and com.runehive.game.world.World.schedule().
Referenced by execute().
◆ name
| final String com.runehive.game.world.cronjobs.Job.name |
|
private |
The documentation for this class was generated from the following file:
- java/com/runehive/game/world/cronjobs/Job.java