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

marcel.util.concurrent.Async Maven / Gradle / Ivy

package marcel.util.concurrent;

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

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

/**
 * Annotation allowing to specify that a function is Marcel asynchronous
 */
@Retention(RetentionPolicy.CLASS)
@Target(value={METHOD})
public @interface Async {

  // TODO support (at least writting) generic types and remove this returnType attribute (?)
  /**
   * The return type of the Future
   * @return the return type of the future
   */
  Class returnType();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy