All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.breuninger.boot.jobs.definition.JobDefinition Maven / Gradle / Ivy

There is a newer version: 2.0.5.RELEASE
Show newest version
package com.breuninger.boot.jobs.definition;

import java.time.Duration;
import java.util.Optional;

public interface JobDefinition {

  String jobType();

  String jobName();

  String description();

  default Optional maxAge() {
    return Optional.empty();
  }

  default Optional fixedDelay() {
    return Optional.empty();
  }

  default Optional cron() {
    return Optional.empty();
  }

  default int restarts() {
    return 0;
  }

  default int retries() {
    return 0;
  }

  default Optional retryDelay() {
    return Optional.empty();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy