Skip to content

LisiLisenok/ChimeJavaExample

Repository files navigation

Chime is time scheduler which works on Vert.x.

Chime is written in Ceylon and to use it with Java Ceylon verticle factory has to be available at class path.

Note: Vert.x 3.4.1 depends on Ceylon 1.3.0 while Chime 0.2.0 depends on Ceylon 1.3.2. It is required to put versions to consistency.

To build the project with Maven it is required:

  1. Add dependency on io.vertx:vertx-core:3.4.1 with excluded dependency on org.ceylon-lang:ceylon-complete. This is general dependency on Vert.x in Java.
  2. Add dependency on io.vertx:vertx-lang-ceylon:3.4.1 with excluded dependency on org.ceylon-lang:ceylon-complete. This dependency provides Ceylon verticle factory.
  3. Add dependency on org.ceylon-lang:ceylon-complete:1.3.2. This is required to use Ceylon.

As example, see pom in this repository.

This Chime Java example:

  • Deploys Chime.
  • Creates timer with 1 second interval which fires just 3 times.
  • Prints timer event to stdout.
  • Closes Vert.x when timer completes.

About

Example of Chime usage in Java

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages