java.lang.Object
jakarta.enterprise.util.AnnotationLiteral<Asynchronous>
jakarta.enterprise.concurrent.Asynchronous.Literal
- All Implemented Interfaces:
Annotation
- Enclosing class:
Asynchronous
public static final class Asynchronous.Literal
extends jakarta.enterprise.util.AnnotationLiteral<Asynchronous>
implements Asynchronous
Enables instances of the
Asynchronous annotation to be created
at run time.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class jakarta.enterprise.concurrent.Asynchronous
Asynchronous.Literal, Asynchronous.Result -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Asynchronous.LiteralInstance of theAsynchronousannotation with all values set to their defaults. -
Method Summary
Modifier and TypeMethodDescriptionexecutor()The JNDI name of theManagedExecutorServiceorManagedScheduledExecutorServiceupon which to run the asynchronous method.static Asynchronous.LiteralConstruct a new instance of theAsynchronousannotation.Schedule[]runAt()A schedule for repeated execution of the method.Methods inherited from class jakarta.enterprise.util.AnnotationLiteral
annotationType, equals, hashCode, toString
-
Field Details
-
INSTANCE
Instance of theAsynchronousannotation with all values set to their defaults.
-
-
Method Details
-
executor
The JNDI name of theManagedExecutorServiceorManagedScheduledExecutorServiceupon which to run the asynchronous method.- Returns:
- managed executor service JNDI name.
-
of
Construct a new instance of theAsynchronousannotation.- Parameters:
executor- JNDI name of theManagedExecutorServiceorManagedScheduledExecutorServiceupon which to run the asynchronous method.runAt- A schedule for repeated execution of the method. Otherwise an empty array.- Returns:
- a new instance of the
Asynchronousannotation.
-
runAt
A schedule for repeated execution of the method. Otherwise an empty array.- Returns:
- the schedule for the asynchronous method.
-