Home

Awesome

db-scheduler-mongo

Module adding mongodb support for db-scheduler

Principle

This module provides 3 main components :

This module aims to be the less intrusive as possible regarding the main project modules.

Usage

  1. Add maven dependency :
<dependency>
   <groupId>com.github.piemjean</groupId>
   <artifactId>db-scheduler-mongo</artifactId>
   <version>9.3</version>
</dependency>
  1. Instantiate and start the scheduler
final Scheduler scheduler = MongoScheduler
    .create(mongoClient, "scheduler-database", "scheduler-collection",
    knownTasks).build();

scheduler.start();
  1. Use the scheduler as detailed in the main documentation