-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(#48): Add codegen for rx3/mutiny
- Loading branch information
Showing
17 changed files
with
249 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
core/src/main/java/io/github/zero88/schedulerx/TaskExecutorProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package io.github.zero88.schedulerx; | ||
|
||
import org.jetbrains.annotations.ApiStatus.Internal; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import io.vertx.codegen.annotations.GenIgnore; | ||
import io.vertx.codegen.annotations.VertxGen; | ||
import io.vertx.core.Vertx; | ||
|
||
/** | ||
* Shared immutable fields between TaskExecutor and its builder | ||
* | ||
* @since 2.0.0 | ||
*/ | ||
@Internal | ||
@VertxGen(concrete = false) | ||
public interface TaskExecutorProperties { | ||
|
||
/** | ||
* Vertx | ||
* | ||
* @return vertx | ||
*/ | ||
@NotNull Vertx vertx(); | ||
|
||
/** | ||
* Defines a task executor monitor | ||
* | ||
* @return task executor monitor | ||
* @see TaskExecutorMonitor | ||
*/ | ||
@GenIgnore(GenIgnore.PERMITTED_TYPE) | ||
@NotNull TaskExecutorMonitor monitor(); | ||
|
||
/** | ||
* Task to execute per round | ||
* | ||
* @return task | ||
* @see Task | ||
*/ | ||
@GenIgnore(GenIgnore.PERMITTED_TYPE) | ||
@NotNull Task task(); | ||
|
||
/** | ||
* Defines job data as input task data | ||
* | ||
* @return job data | ||
* @see JobData | ||
*/ | ||
@GenIgnore(GenIgnore.PERMITTED_TYPE) | ||
@NotNull JobData jobData(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
core/src/main/java/io/github/zero88/schedulerx/trigger/CronTriggerExecutor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
package io.github.zero88.schedulerx.trigger; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
import io.github.zero88.schedulerx.TriggerTaskExecutor; | ||
import io.vertx.codegen.annotations.GenIgnore; | ||
import io.vertx.codegen.annotations.VertxGen; | ||
|
||
/** | ||
* Represents for the task executor has an execution loop based on the timer of cron expressions. | ||
* | ||
* @see CronTrigger | ||
* @since 2.0.0 | ||
*/ | ||
@VertxGen | ||
public interface CronTriggerExecutor extends TriggerTaskExecutor<CronTrigger> { | ||
|
||
static CronTriggerExecutorBuilder builder() { return new CronTriggerExecutorBuilder(); } | ||
static CronTriggerExecutorBuilder builder() { return new CronTriggerExecutorImpl.CronTriggerExecutorBuilderImpl(); } | ||
|
||
@Override | ||
@GenIgnore(GenIgnore.PERMITTED_TYPE) | ||
@NotNull CronTrigger trigger(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.