io.quarkus.virtual.threads.VirtualThreads Maven / Gradle / Ivy
package io.quarkus.virtual.threads;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import jakarta.enterprise.util.AnnotationLiteral;
import jakarta.inject.Qualifier;
/**
* Qualifies an injected virtual threads executor service.
*/
@Qualifier
@Target({ FIELD, METHOD, PARAMETER })
@Retention(RUNTIME)
public @interface VirtualThreads {
final class Literal extends AnnotationLiteral implements VirtualThreads {
public static final Literal INSTANCE = new Literal();
private static final long serialVersionUID = 1L;
}
}