Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scheduler

Schedule routines to run after a certain time or whenever the the timer expires.

Coverage statusJava compatibilityMaven Central releaseLicense


❇ Introduction

Scheduler allows you to perform operations with routines so that they are executed according to a criterion.

❓ How to use

  1. Add one of the options below to the pom.xml file:

Using Maven Central (recomended):

<dependency>  <groupId>io.github.wniemiec-task-java</groupId>  <artifactId>scheduler</artifactId>  <version>LATEST</version></dependency>

Using GitHub Packages:

<dependency>  <groupId>wniemiec.task.java</groupId>  <artifactId>scheduler</artifactId>  <version>LATEST</version></dependency>
  1. Run
$ mvn install
  1. Use it
[...]import wniemiec.task.java.Scheduler;[...]Scheduler.setTimeout(() -> { System.out.println("Hello..."); }, 1000);Scheduler.setTimeout(() -> { System.out.println("World!"); }, 1000);

📖 Documentation

PropertyParameter typeReturn typeDescriptionDefault parameter value
setTimeoutroutine: Routine, delay: longlongSets a timer which executes a routine once the timer expires-
setIntervalroutine: Routine, delay: longlongRepeatedly calls a routine with a fixed time delay between each call-
clearIntervalid: longvoidCancels a timed, repeating action-
clearTimeoutid: longvoidCancels a timed action-
clearAllTimeoutvoidvoidClear all timeouts-
clearAllIntervalsvoidvoidClear all intervals-
setTimeoutToRoutineroutine: Routine, delay: longbooleanRuns a routine within a timeout. If the routine does not end on time, an interrupt signal will be sent to it-

🚩 Changelog

Details about each version are documented in thereleases section.

🤝 Contribute!

See the documentation on how you can contribute to the projecthere.

📁 Files

/

NameTypeDescription
distDirectoryReleased versions
docsDirectoryDocumentation files
srcDirectorySource files

About

Schedule routines to run after a certain time or whenever the the timer expires.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages


[8]ページ先頭

©2009-2025 Movatter.jp