scheta

Configurable library to create periodic and single jobs in Java.

License

License

GroupId

GroupId

com.github.okarmusk
ArtifactId

ArtifactId

scheta
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

scheta
Configurable library to create periodic and single jobs in Java.
Project URL

Project URL

https://github.com/okarmusk/scheta
Source Code Management

Source Code Management

https://github.com/okarmusk/scheta.git

Download scheta

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.okarmusk/scheta/ -->
<dependency>
    <groupId>com.github.okarmusk</groupId>
    <artifactId>scheta</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.okarmusk/scheta/
implementation 'com.github.okarmusk:scheta:2.0.0'
// https://jarcasting.com/artifacts/com.github.okarmusk/scheta/
implementation ("com.github.okarmusk:scheta:2.0.0")
'com.github.okarmusk:scheta:jar:2.0.0'
<dependency org="com.github.okarmusk" name="scheta" rev="2.0.0">
  <artifact name="scheta" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.okarmusk', module='scheta', version='2.0.0')
)
libraryDependencies += "com.github.okarmusk" % "scheta" % "2.0.0"
[com.github.okarmusk/scheta "2.0.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.apache.commons : commons-lang3 jar 3.11
org.slf4j : slf4j-api jar 1.7.30

test (5)

Group / Artifact Type Version
org.slf4j : slf4j-simple jar 1.7.30
org.junit.jupiter : junit-jupiter-api jar 5.7.0
org.junit.jupiter : junit-jupiter-engine jar 5.7.0
org.mockito : mockito-core jar 3.5.13
org.json : json jar 20200518

Project Modules

There are no modules declared in this project.

scheta

Configurable library to create periodic and single jobs in Java.

Exposed classes

  • TaskConfiguration class represent configuration for both types of task: SingleJob and PeriodicJob. For SingleJob type task, it can be null, what cause immediate task lunch. null configuration for PeriodicJob cause NullPointerException.

  • SingleJob class is able to lunch one time task immediately or with delay. It's dependent of configuration. Configuration time property is in HH:MM:SS format. If property is set properly, task will be triggered at set hour, minute and second.

  • PeriodicJob class is able to lunch periodic task immediately or with delay. If time property is not set, task starts now. unit defines period time representation in HOURS, MINUTES and SECONDS. period property defines time between task lunches, remember that it is represent as int.

Versions

Version
2.0.0
1.1.0
1.0.0