Skip to content

Java task scheduling for humans. Execute runnable tasks periodically using a friendly syntax.

License

Notifications You must be signed in to change notification settings

SirLefti/schedule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Schedule

Java task scheduling for humans. Execute runnable tasks periodically using a friendly syntax. Basically a port of the Python lib schedule by D. Bader to Java.

  • chained syntax made for humans
  • built-in scheduler
  • no external dependencies

Usage

import de.lefti.schedule.Schedule;

public class Example {
	public static void main(String[] args) {
		Runnable task = () -> System.out.println("Hello World!");

		Schedule.every(10).seconds().run(task);
		Schedule.every().hour().at(":30").run(task);
		Schedule.every().monday().at("00:30").run(task);

		Schedule.once().monday().at("08:00").run(task);
	}
}

Installation

Replace VERSION key with the latest version available.

Maven

<dependency>
    <groupId>de.lefti</groupId>
    <artifactId>schedule</artifactId>
    <version>VERSION</version>
</dependency>

Gradle

dependencies {
    compile 'de.lefti:schedule:VERSION'
}

About

Java task scheduling for humans. Execute runnable tasks periodically using a friendly syntax.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages