net.leanix.dropkit.quartz.JobConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leanix-dropkit Show documentation
Show all versions of leanix-dropkit Show documentation
Base functionality for leanIX dropwizard-based services
package net.leanix.dropkit.quartz;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Used to specify the interval time in milliseconds or seconds.
*
* @author ralfwehner
*
*/
public class JobConfiguration {
@JsonProperty
private long intervalMillis = 0;
@JsonProperty
private long intervalSeconds = 0;
public long getIntervalMillis() {
if (intervalMillis > 0) {
return intervalMillis;
}
return intervalSeconds * 1000L;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy