- Notifications
You must be signed in to change notification settings - Fork1
Schedule routines to run after a certain time or whenever the the timer expires.
License
NotificationsYou must be signed in to change notification settings
wniemiec-task-java/scheduler
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Schedule routines to run after a certain time or whenever the the timer expires.
Scheduler allows you to perform operations with routines so that they are executed according to a criterion.
- Add one of the options below to the pom.xml file:
<dependency> <groupId>io.github.wniemiec-task-java</groupId> <artifactId>scheduler</artifactId> <version>LATEST</version></dependency><dependency> <groupId>wniemiec.task.java</groupId> <artifactId>scheduler</artifactId> <version>LATEST</version></dependency>- Run
$ mvn install- Use it
[...]import wniemiec.task.java.Scheduler;[...]Scheduler.setTimeout(() -> { System.out.println("Hello..."); }, 1000);Scheduler.setTimeout(() -> { System.out.println("World!"); }, 1000);| Property | Parameter type | Return type | Description | Default parameter value |
|---|---|---|---|---|
| setTimeout | routine: Routine, delay: long | long | Sets a timer which executes a routine once the timer expires | - |
| setInterval | routine: Routine, delay: long | long | Repeatedly calls a routine with a fixed time delay between each call | - |
| clearInterval | id: long | void | Cancels a timed, repeating action | - |
| clearTimeout | id: long | void | Cancels a timed action | - |
| clearAllTimeout | void | void | Clear all timeouts | - |
| clearAllIntervals | void | void | Clear all intervals | - |
| setTimeoutToRoutine | routine: Routine, delay: long | boolean | Runs a routine within a timeout. If the routine does not end on time, an interrupt signal will be sent to it | - |
Details about each version are documented in thereleases section.
See the documentation on how you can contribute to the projecthere.
| Name | Type | Description |
|---|---|---|
| dist | Directory | Released versions |
| docs | Directory | Documentation files |
| src | Directory | Source files |
About
Schedule routines to run after a certain time or whenever the the timer expires.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
