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

de.skuzzle.inject.async.annotation.Scheduler Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package de.skuzzle.inject.async.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.ScheduledExecutorService;

import com.google.inject.Key;

/**
 * Allows to specify the class part of the {@link Key} that is used to look up a
 * {@link ScheduledExecutorService} for a method annotated with
 * {@link Scheduled}. Please refer to the {@link Scheduled} documentation for
 * further information.
 *
 * @author Simon Taddiken
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Scheduler {
    /**
     * Specifies the type of the scheduler to use.
     *
     * @return The scheduler type.
     */
    Class value();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy