lisilisenok / chime Goto Github PK
View Code? Open in Web Editor NEWTime scheduler for Vert.x
License: MIT License
Time scheduler for Vert.x
License: MIT License
Provide an interface bridged to a timer with event bus
Currently timer events are sent via event bus.
The producer has to be provided via extension.
Default producer sends events via event bus.
Another producer may send events via TCP or HTTP or other.
Provide an interface bridged to scheduler with event bus
Currently time unique id generated as integer counter - it must be more complicated
Reasons:
How to use Chime from Java?
Classes / functions to build JSON of various calendars
Calendar somehow provides bounding timer fire date/time.
Attach message with delivery options to the timer description.
When timer fires it sends the given message too.
Hi!
It seems that the module does not work with VertX 3.5.0, it gives this error:
Deployment failed! com.redhat.ceylon.compiler.java.runtime.tools.ModuleNotFoundException: Could not find module: io.vertx.ceylon.core/3.5.0
The code:
private void addSchedulers() {
vertx.deployVerticle("ceylon:herd.schedule.chime/0.2.1", res -> {
if (res.succeeded()) {
System.out.println("Chime has been successfully deployed - start scheduling");
//scheduling(vertx);
} else {
System.out.println("Deployment failed! " + res.cause());
vertx.close();
}
});
}
Pom dependencies:
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-core</artifactId>
<version>3.5.0</version>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-lang-ceylon</artifactId>
<version>3.5.0</version>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-lang-ceylon-doc</artifactId>
<version>3.5.0</version>
</dependency>
The problem could be that io.vertx.ceylon.core
does not exists anymore
In this state timer is running but doesn't not send fire events. All events are collected and will be send as deferred fire when timer state set to running.
If timer completes in this state then timer is kept for the given time period or while not set to running. If timer has not been set to running during this period it is deleted without sending events.
Helper class to build cron timer description.
Acts as union of a number of timers This may be useful to fire at a list of certain date / times.
hello,my pom.xml
vertx.version 3.5.3
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-core</artifactId>
<version>${vertx.version}</version>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-lang-ceylon</artifactId>
<version>${vertx.version}</version>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-lang-kotlin</artifactId>
<version>${vertx.version}</version>
</dependency>
run:
Deployment failed! com.redhat.ceylon.compiler.java.runtime.tools.ModuleNotFoundException: Could not find module: io.vertx.ceylon.core/3.5.3
If scheduler/timer name is not given at create request Chime has to generate unique name and provide the address with response
7 day of month is on second week. Must be on the first.
Currently chime listens event bus to consumer messages to.
This may be provided with extensions. In order to consumer messages from another sources.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.