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

de.mcs.jmeasurement.BackgroundProcess Maven / Gradle / Ivy

The newest version!
/**
 * MCS Media Computer Software
 * Copyright 2019 by Wilfried Klaas
 * Project: JMPrometheus
 * File: BackgroundProcess.java
 * EMail: [email protected]
 * Created: 06.04.2019 wklaa_000
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see 
 */
package de.mcs.jmeasurement;

import static java.lang.annotation.ElementType.TYPE;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author wklaa_000 
 * This annotation is used to define the timing parameters of a background process. As in the original {@link java.util.Timer } 
 * you can define a delay and a period.
 */
@Target(TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface BackgroundProcess {

  long period();

  long delay();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy