com.geneea.celery.CeleryTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of celery-java Show documentation
Show all versions of celery-java Show documentation
Java library for interfacing with http://celeryproject.org including code for both task submissions and task
execution.
package com.geneea.celery;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Marks your code as a Celery CeleryTask.
*
* The annotation processor included in this package then generates two classes - {@code *Proxy} and {@code *Loader}.
* The loader is
*
* All parameters and return types must be JSON-serializable.
*
* In order for the {@link CeleryWorker} to find your Tasks, you must register them as a service in {@code META-INF/services}.
* An easy way to do it is to annotate your CeleryTask implementation with {@code org.kohsuke.MetaInfServices} annotation. See
* example tasks in the examples module.
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
public @interface CeleryTask {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy