Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbortedException - Exception Class in jakarta.enterprise.concurrent
-
Exception indicating that the result of a task cannot be retrieved because the task failed to run for some reason other than being cancelled.
- AbortedException() - Constructor for exception class jakarta.enterprise.concurrent.AbortedException
-
Constructs an AbortedException with
nullas its detail message. - AbortedException(String) - Constructor for exception class jakarta.enterprise.concurrent.AbortedException
-
Constructs an AbortedException exception with the specified detail message.
- AbortedException(String, Throwable) - Constructor for exception class jakarta.enterprise.concurrent.AbortedException
-
Constructs an AbortedException exception with the specified detail message and cause.
- AbortedException(Throwable) - Constructor for exception class jakarta.enterprise.concurrent.AbortedException
-
Constructs an AbortedException exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
- Adapter(ManagedTaskListener, Map, ManagedTask) - Constructor for class jakarta.enterprise.concurrent.ManagedExecutors.Adapter
- add(SortedSet, int, int, int) - Static method in class jakarta.enterprise.concurrent.CronTrigger
- ALL_DAYS_OF_MONTH - Static variable in class jakarta.enterprise.concurrent.CronTrigger
- ALL_DAYS_OF_WEEK - Static variable in class jakarta.enterprise.concurrent.CronTrigger
- ALL_MONTHS - Static variable in class jakarta.enterprise.concurrent.CronTrigger
- ALL_REMAINING - Static variable in annotation type jakarta.enterprise.concurrent.ContextServiceDefinition
-
All available thread context types that are not specified elsewhere.
- APPLICATION - Static variable in annotation type jakarta.enterprise.concurrent.ContextServiceDefinition
-
Context pertaining to the application component or module, including its Jakarta EE namespace (such as
java:comp/env/) and thread context class loader. - Asynchronous - Annotation Type in jakarta.enterprise.concurrent
-
Annotates a CDI managed bean method to run asynchronously.
- Asynchronous.Result - Class in jakarta.enterprise.concurrent
-
Mechanism by which the Jakarta EE Product Provider makes available to the asynchronous method implementation the same
CompletableFutureinstance that the Jakarta EE Product Provider supplies to the caller of the asynchronous method.
B
- begin() - Method in interface jakarta.enterprise.concurrent.spi.ThreadContextSnapshot
-
Applies the captured thread context snapshot to the current thread and returns a distinct
ThreadContextRestorerinstance.
C
- call() - Method in class jakarta.enterprise.concurrent.ManagedExecutors.CallableAdapter
- CallableAdapter(Callable, Map, ManagedTaskListener) - Constructor for class jakarta.enterprise.concurrent.ManagedExecutors.CallableAdapter
- cleared() - Element in annotation type jakarta.enterprise.concurrent.ContextServiceDefinition
-
Types of context to clear whenever a thread runs the contextual task or action.
- clearedContext(Map) - Method in interface jakarta.enterprise.concurrent.spi.ThreadContextProvider
-
Returns empty/cleared context of the provided type.
- complete(T) - Static method in class jakarta.enterprise.concurrent.Asynchronous.Result
-
Completes the
CompletableFutureinstance that the Jakarta EE Product Provider supplies to the caller of the asynchronous method. - completedFuture(U) - Method in interface jakarta.enterprise.concurrent.ManagedExecutorService
-
Returns a new
CompletableFuturethat is already completed with the specified value. - completedStage(U) - Method in interface jakarta.enterprise.concurrent.ManagedExecutorService
-
Returns a new
CompletionStagethat is already completed with the specified value. - context() - Element in annotation type jakarta.enterprise.concurrent.ManagedExecutorDefinition
-
The name of a
ContextServiceinstance which determines how context is applied to tasks and actions that run on this executor. - context() - Element in annotation type jakarta.enterprise.concurrent.ManagedScheduledExecutorDefinition
-
The name of a
ContextServiceinstance which determines how context is applied to tasks and actions that run on this executor. - context() - Element in annotation type jakarta.enterprise.concurrent.ManagedThreadFactoryDefinition
-
Determines how context is applied to threads from this thread factory.
- ContextService - Interface in jakarta.enterprise.concurrent
-
The ContextService provides methods for creating dynamic proxy objects (as defined by
java.lang.reflect.Proxy). - ContextServiceDefinition - Annotation Type in jakarta.enterprise.concurrent
-
Defines a
ContextServiceto be injected intoContextServiceinjection points including any requiredQualifierannotations specified byContextServiceDefinition.qualifiers()and registered in JNDI by the container under the JNDI name that is specified in theContextServiceDefinition.name()attribute. - ContextServiceDefinition.List - Annotation Type in jakarta.enterprise.concurrent
-
Enables multiple
ContextServiceDefinitionannotations on the same type. - contextualCallable(Callable) - Method in interface jakarta.enterprise.concurrent.ContextService
-
Wraps a
Callablewith context that is captured from the thread that invokescontextualCallable. - contextualConsumer(BiConsumer) - Method in interface jakarta.enterprise.concurrent.ContextService
-
Wraps a
BiConsumerwith context that is captured from the thread that invokescontextualConsumer. - contextualConsumer(Consumer) - Method in interface jakarta.enterprise.concurrent.ContextService
-
Wraps a
Consumerwith context that is captured from the thread that invokescontextualConsumer. - contextualFunction(BiFunction) - Method in interface jakarta.enterprise.concurrent.ContextService
-
Wraps a
BiFunctionwith context that is captured from the thread that invokescontextualFunction. - contextualFunction(Function) - Method in interface jakarta.enterprise.concurrent.ContextService
-
Wraps a
BiFunctionwith context that is captured from the thread that invokescontextualFunction. - contextualProcessor(Flow.Processor) - Method in interface jakarta.enterprise.concurrent.ContextService
-
Wraps a
Flow.Processorwith context captured from the thread that invokescontextualProcessor. - contextualRunnable(Runnable) - Method in interface jakarta.enterprise.concurrent.ContextService
-
Wraps a
Runnablewith context that is captured from the thread that invokescontextualRunnable. - contextualSubscriber(Flow.Subscriber) - Method in interface jakarta.enterprise.concurrent.ContextService
-
Wraps a
Flow.Subscriberwith context captured from the thread that invokescontextualSubscriber. - contextualSupplier(Supplier) - Method in interface jakarta.enterprise.concurrent.ContextService
-
Wraps a
Supplierwith context captured from the thread that invokescontextualSupplier. - copy(CompletableFuture) - Method in interface jakarta.enterprise.concurrent.ManagedExecutorService
-
Returns a new
CompletableFuturethat is completed by the completion of the specified stage. - copy(CompletionStage) - Method in interface jakarta.enterprise.concurrent.ManagedExecutorService
-
Returns a new
CompletionStagethat is completed by the completion of the specified stage. - createContextualProxy(Object, Class...) - Method in interface jakarta.enterprise.concurrent.ContextService
-
Creates a new contextual object proxy for the input object instance.
- createContextualProxy(Object, Map, Class...) - Method in interface jakarta.enterprise.concurrent.ContextService
-
Creates a new contextual object proxy for the input object instance.
- createContextualProxy(T, Class) - Method in interface jakarta.enterprise.concurrent.ContextService
-
Creates a new contextual object proxy for the input object instance.
- createContextualProxy(T, Map, Class) - Method in interface jakarta.enterprise.concurrent.ContextService
-
Creates a new contextual object proxy for the input object instance.
- cron() - Element in annotation type jakarta.enterprise.concurrent.Schedule
-
Cron expression following the rules of
CronTrigger. - CronTrigger - Class in jakarta.enterprise.concurrent
- CronTrigger(String, ZoneId) - Constructor for class jakarta.enterprise.concurrent.CronTrigger
-
Constructor that accepts a cron expression.
- CronTrigger(ZoneId) - Constructor for class jakarta.enterprise.concurrent.CronTrigger
-
Constructor for the fluent configuration pattern.
- currentContext(Map) - Method in interface jakarta.enterprise.concurrent.spi.ThreadContextProvider
-
Captures from the current thread a snapshot of the provided thread context type.
- currentContextExecutor() - Method in interface jakarta.enterprise.concurrent.ContextService
-
Captures thread context as an
Executorthat runs tasks on the same thread from whichexecuteis invoked but with context that is captured from the thread that invokescurrentContextExecutor.
D
- DAYS_OF_WEEK - Static variable in class jakarta.enterprise.concurrent.CronTrigger
- daysOfMonth - Variable in class jakarta.enterprise.concurrent.CronTrigger
- daysOfMonth() - Element in annotation type jakarta.enterprise.concurrent.Schedule
-
Days of the month on which the asynchronous method aims to run.
- daysOfMonth(int...) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Configure the day-of-month cron field, overwriting any previous value for day-of-month.
- daysOfMonth(String) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Configure the day-of-month cron field, overwriting any previous value for day-of-month.
- daysOfWeek - Variable in class jakarta.enterprise.concurrent.CronTrigger
- daysOfWeek() - Element in annotation type jakarta.enterprise.concurrent.Schedule
-
Days of the week on which the asynchronous method aims to run.
- daysOfWeek(String) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Configure the day-of-week cron field, overwriting any previous value for day-of-week.
- daysOfWeek(DayOfWeek...) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Configure the day-of-week cron field, overwriting any previous value for day-of-week.
E
- endContext() - Method in interface jakarta.enterprise.concurrent.spi.ThreadContextRestorer
-
Invoked by the Jakarta EE Product Provider to remove the thread context that the
ThreadContextSnapshotbegan on this thread and restore the previous context that was on the thread prior to that point. - executionProperties - Variable in class jakarta.enterprise.concurrent.ManagedExecutors.Adapter
- executor() - Element in annotation type jakarta.enterprise.concurrent.Asynchronous
-
JNDI name of a
ManagedExecutorServiceorManagedScheduledExecutorServiceupon which to run the asynchronous method.
F
- failedFuture(Throwable) - Method in interface jakarta.enterprise.concurrent.ManagedExecutorService
-
Returns a new
CompletableFuturethat is already exceptionally completed with the specifiedThrowable. - failedStage(Throwable) - Method in interface jakarta.enterprise.concurrent.ManagedExecutorService
-
Returns a new
CompletionStagethat is already exceptionally completed with the specifiedThrowable. - FUTURES - Static variable in class jakarta.enterprise.concurrent.Asynchronous.Result
G
- getContextService() - Method in interface jakarta.enterprise.concurrent.ManagedExecutorService
-
Returns a
ContextServicewhich has the same propagation settings as thisManagedExecutorServiceand uses thisManagedExecutorServiceas the default asynchronous execution facility forCompletionStageandCompletableFutureinstances that it creates via thewithContextCapturemethods. - getExecutionProperties() - Method in class jakarta.enterprise.concurrent.ManagedExecutors.Adapter
- getExecutionProperties() - Method in interface jakarta.enterprise.concurrent.ManagedTask
-
Provides additional information to the
ManagedExecutorServiceorManagedScheduledExecutorServicewhen executing this task. - getExecutionProperties(Object) - Method in interface jakarta.enterprise.concurrent.ContextService
-
Gets the current execution properties on the context proxy instance.
- getFuture() - Static method in class jakarta.enterprise.concurrent.Asynchronous.Result
-
Obtains the same
CompletableFutureinstance that the Jakarta EE Product Provider supplies to the caller of the asynchronous method. - getIdentityName() - Method in interface jakarta.enterprise.concurrent.LastExecution
-
The name or ID of the identifiable object, as specified in the
ManagedTask.IDENTITY_NAMEexecution property of the task if it also implements theManagedTaskinterface. - getManagedTaskListener() - Method in class jakarta.enterprise.concurrent.ManagedExecutors.Adapter
- getManagedTaskListener() - Method in interface jakarta.enterprise.concurrent.ManagedTask
-
The
ManagedTaskListenerto receive notification of lifecycle events of this task. - getNextRunTime(LastExecution, ZonedDateTime) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Using the cron schedule, and based on the end of the most recent execution (or absent that, the initial scheduling time), retrieve the next time that the task should run after.
- getNextRunTime(LastExecution, ZonedDateTime) - Method in interface jakarta.enterprise.concurrent.ZonedTrigger
-
Retrieve the next time that the task should run after.
- getNextRunTime(LastExecution, Date) - Method in interface jakarta.enterprise.concurrent.Trigger
-
Retrieve the next time that the task should run after.
- getNextRunTime(LastExecution, Date) - Method in interface jakarta.enterprise.concurrent.ZonedTrigger
-
Retrieve the next time that the task should run after.
- getResult() - Method in interface jakarta.enterprise.concurrent.LastExecution
-
Result of the last execution.
- getRunEnd() - Method in interface jakarta.enterprise.concurrent.LastExecution
-
The last time in which the task was completed.
- getRunEnd(ZoneId) - Method in interface jakarta.enterprise.concurrent.LastExecution
-
The time, in the specified time-zone, at which the most recent execution of the task completed running.
- getRunStart() - Method in interface jakarta.enterprise.concurrent.LastExecution
-
The last time in which the task started running.
- getRunStart(ZoneId) - Method in interface jakarta.enterprise.concurrent.LastExecution
-
The time, in the specified time-zone, at which the most recent execution of the task started running.
- getScheduledStart() - Method in interface jakarta.enterprise.concurrent.LastExecution
-
The last time in which task was scheduled to run.
- getScheduledStart(ZoneId) - Method in interface jakarta.enterprise.concurrent.LastExecution
-
The time, in the specified time-zone, at which the most recent execution of the task was expected to start, per its schedule.
- getThreadContextType() - Method in interface jakarta.enterprise.concurrent.spi.ThreadContextProvider
-
Returns a human readable identifier for the type of thread context that is captured by this
ThreadContextProviderimplementation. - getZoneId() - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Returns the timezone to use for
ZonedDateTimethat is supplied to thegetNextRunTimeandskipRunmethods. - getZoneId() - Method in interface jakarta.enterprise.concurrent.ZonedTrigger
-
Returns the timezone to use for the
ZonedDateTimethat is supplied to thegetNextRunTimeandskipRunmethods.
H
- hours - Variable in class jakarta.enterprise.concurrent.CronTrigger
- hours() - Element in annotation type jakarta.enterprise.concurrent.Schedule
-
Hours of the day at which the asynchronous method aims to run.
- hours(int...) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Configure the hours cron field, overwriting any previous value for hours.
- hours(String) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Configure the hours cron field, overwriting any previous value for hours.
- hungTaskThreshold() - Element in annotation type jakarta.enterprise.concurrent.ManagedExecutorDefinition
-
The amount of time in milliseconds that a task or action can execute before it is considered hung.
- hungTaskThreshold() - Element in annotation type jakarta.enterprise.concurrent.ManagedScheduledExecutorDefinition
-
The amount of time in milliseconds that a task or action can execute before it is considered hung.
I
- IDENTITY_NAME - Static variable in interface jakarta.enterprise.concurrent.ManagedTask
-
Execution property to be returned in
ManagedTask.getExecutionProperties()orContextService.createContextualProxy()to provide a String that identifies the task. - initExecutionProperties(Map, Map) - Method in class jakarta.enterprise.concurrent.ManagedExecutors.Adapter
- isCurrentThreadShutdown() - Static method in class jakarta.enterprise.concurrent.ManagedExecutors
-
Utility method for checking the
isShutdown()value of the current thread if it is aManageableThreadcreated fromManagedThreadFactory.newThread(). - isShutdown() - Method in interface jakarta.enterprise.concurrent.ManageableThread
-
This method is used by the application component provider to check whether a thread created by the
newThreadmethod ofManagedThreadFactoryhas been marked for shut down.
J
- jakarta.concurrency - module jakarta.concurrency
- jakarta.enterprise.concurrent - package jakarta.enterprise.concurrent
-
Classes and interfaces that make up the Jakarta Concurrency specification.
- jakarta.enterprise.concurrent.spi - package jakarta.enterprise.concurrent.spi
-
Interfaces for third-party providers of thread context to implement.
L
- LAST - Static variable in class jakarta.enterprise.concurrent.CronTrigger
- LastExecution - Interface in jakarta.enterprise.concurrent
-
Contains information about the last execution of a task.
- LONGRUNNING_HINT - Static variable in interface jakarta.enterprise.concurrent.ManagedTask
-
Execution property to be returned in
ManagedTask.getExecutionProperties()orContextService.createContextualProxy()to provide hint about whether the task could take a long time to complete.
M
- ManageableThread - Interface in jakarta.enterprise.concurrent
-
Interface to be implemented by the Jakarta™ EE product providers on platform threads that are created by calling
ThreadFactory.newThread(java.lang.Runnable). - ManagedExecutorDefinition - Annotation Type in jakarta.enterprise.concurrent
-
Defines a
ManagedExecutorServiceto be injected intoManagedExecutorServiceinjection points including any requiredQualifierannotations specified byManagedExecutorDefinition.qualifiers()and registered in JNDI by the container under the JNDI name that is specified in theManagedExecutorDefinition.name()attribute. - ManagedExecutorDefinition.List - Annotation Type in jakarta.enterprise.concurrent
-
Enables multiple
ManagedExecutorDefinitionannotations on the same type. - ManagedExecutors - Class in jakarta.enterprise.concurrent
-
Utility methods for classes defined in this package.
- ManagedExecutors() - Constructor for class jakarta.enterprise.concurrent.ManagedExecutors
-
Not suppose to create instances of this class.
- ManagedExecutors.Adapter - Class in jakarta.enterprise.concurrent
- ManagedExecutors.CallableAdapter<V> - Class in jakarta.enterprise.concurrent
-
Adapter for Callable to include ManagedTask interface methods.
- ManagedExecutors.RunnableAdapter - Class in jakarta.enterprise.concurrent
-
Adapter for Runnable to include ManagedTask interface methods.
- ManagedExecutorService - Interface in jakarta.enterprise.concurrent
-
A manageable version of a
ExecutorService. - ManagedScheduledExecutorDefinition - Annotation Type in jakarta.enterprise.concurrent
-
Defines a
ManagedScheduledExecutorServiceto be injected intoManagedScheduledExecutorServiceinjection points including any requiredQualifierannotations specified byManagedScheduledExecutorDefinition.qualifiers()and registered in JNDI by the container under the JNDI name that is specified in theManagedScheduledExecutorDefinition.name()attribute. - ManagedScheduledExecutorDefinition.List - Annotation Type in jakarta.enterprise.concurrent
-
Enables multiple
ManagedScheduledExecutorDefinitionannotations on the same type. - ManagedScheduledExecutorService - Interface in jakarta.enterprise.concurrent
-
A manageable version of a
ScheduledExecutorService. - managedTask - Variable in class jakarta.enterprise.concurrent.ManagedExecutors.Adapter
- managedTask(Runnable, ManagedTaskListener) - Static method in class jakarta.enterprise.concurrent.ManagedExecutors
-
Returns a
Runnableobject that also implementsManagedTaskinterface so it can receive notification of lifecycle events with the providedManagedTaskListenerwhen the task is submitted to aManagedExecutorServiceor aManagedScheduledExecutorService. - managedTask(Runnable, Map, ManagedTaskListener) - Static method in class jakarta.enterprise.concurrent.ManagedExecutors
-
Returns a
Runnableobject that also implementsManagedTaskinterface so it can receive notification of lifecycle events with the providedManagedTaskListenerand to provide additional execution properties when the task is submitted to aManagedExecutorServiceor aManagedScheduledExecutorService. - managedTask(Callable, ManagedTaskListener) - Static method in class jakarta.enterprise.concurrent.ManagedExecutors
-
Returns a
Callableobject that also implementsManagedTaskinterface so it can receive notification of lifecycle events with the providedManagedTaskListenerwhen the task is submitted to aManagedExecutorServiceor aManagedScheduledExecutorService. - managedTask(Callable, Map, ManagedTaskListener) - Static method in class jakarta.enterprise.concurrent.ManagedExecutors
-
Returns a
Callableobject that also implementsManagedTaskinterface so it can receive notification of lifecycle events with the providedManagedTaskListenerand to provide additional execution properties when the task is submitted to aManagedExecutorServiceor aManagedScheduledExecutorService. - ManagedTask - Interface in jakarta.enterprise.concurrent
-
A task submitted to an
ManagedExecutorServiceorManagedScheduledExecutorServicecan optionally implement this interface to provide identifying information about the task, to provide aManagedTaskListenerto get notification of lifecycle events of the task, or to provide additional execution properties. - ManagedTaskListener - Interface in jakarta.enterprise.concurrent
-
A ManagedTaskListener is used to monitor the state of a task's Future.
- ManagedThreadFactory - Interface in jakarta.enterprise.concurrent
-
A manageable version of a
ThreadFactory. - ManagedThreadFactoryDefinition - Annotation Type in jakarta.enterprise.concurrent
-
Defines
ManagedThreadFactoryinstances to be injected intoManagedThreadFactoryinjection points including any requiredQualifierannotations specified byManagedThreadFactoryDefinition.qualifiers()and registered in JNDI by the container under the JNDI name that is specified in theManagedThreadFactoryDefinition.name()attribute. - ManagedThreadFactoryDefinition.List - Annotation Type in jakarta.enterprise.concurrent
-
Enables multiple
ManagedThreadFactoryDefinitionannotations on the same type. - maxAsync() - Element in annotation type jakarta.enterprise.concurrent.ManagedExecutorDefinition
-
Upper bound on contextual tasks and actions that this executor will simultaneously execute asynchronously.
- maxAsync() - Element in annotation type jakarta.enterprise.concurrent.ManagedScheduledExecutorDefinition
-
Upper bound on contextual tasks and actions that this executor will simultaneously execute asynchronously.
- minutes - Variable in class jakarta.enterprise.concurrent.CronTrigger
- minutes() - Element in annotation type jakarta.enterprise.concurrent.Schedule
-
Minutes at which the asynchronous method aims to run.
- minutes(int...) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Configure the minutes cron field, overwriting any previous value for minutes.
- minutes(String) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Configure the minutes cron field, overwriting any previous value for minutes.
- months - Variable in class jakarta.enterprise.concurrent.CronTrigger
- months() - Element in annotation type jakarta.enterprise.concurrent.Schedule
-
Months in which the asynchronous method aims to run.
- months(String) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Configure the months cron field, overwriting any previous value for months.
- months(Month...) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Configure the month cron field, overwriting any previous value for month.
- MONTHS - Static variable in class jakarta.enterprise.concurrent.CronTrigger
N
- name() - Element in annotation type jakarta.enterprise.concurrent.ContextServiceDefinition
-
JNDI name of the
ContextServiceinstance being defined. - name() - Element in annotation type jakarta.enterprise.concurrent.ManagedExecutorDefinition
-
JNDI name of the
ManagedExecutorServiceinstance. - name() - Element in annotation type jakarta.enterprise.concurrent.ManagedScheduledExecutorDefinition
-
JNDI name of the
ManagedScheduledExecutorServiceinstance. - name() - Element in annotation type jakarta.enterprise.concurrent.ManagedThreadFactoryDefinition
-
JNDI name of the
ManagedThreadFactoryinstance. - newIncompleteFuture() - Method in interface jakarta.enterprise.concurrent.ManagedExecutorService
-
Returns a new incomplete
CompletableFuture. - next(ZonedDateTime) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Advance to the next date/time according to the cron schedule.
- nextDayOfMonth(int, int, int, int, ZonedDateTime) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Advance to next day of month.
- nextHour(int, int, int, int, int, int, ZonedDateTime) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Advance to next hour.
- nextMinute(int, int, int, int, int, int, int, ZonedDateTime) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Advance to next minute.
- nextMonth(int, int) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Advance to next month.
- nextSecond(int, int, int, int, int, int, int, int, ZonedDateTime) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Advance to next second.
- NULL_TASK_ERROR_MSG - Static variable in class jakarta.enterprise.concurrent.ManagedExecutors
-
Error message for null tasks.
P
- parse(String, int, int, int[]) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Validate that the supplied list values are within the allowed range for the cron field type.
- parse(String, int, int, int, String, Function) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Validate that the supplied list values are within the allowed range for the cron field type.
- parseDayOfMonth(String) - Static method in class jakarta.enterprise.concurrent.CronTrigger
-
Convert dayOfMonth value to 1-31, or negative for days from the end of the month For example, L is the last day (-1) and 2L is the second to last day (-2).
- parseDayOfWeek(String) - Static method in class jakarta.enterprise.concurrent.CronTrigger
-
Convert dayOfWeek value to 1-49 where first 7 are standard week days, next 35 are ordinal 1st-5th of each day, and final 7 are ordinal last for each day.
- parseMonth(String) - Static method in class jakarta.enterprise.concurrent.CronTrigger
-
Convert month value to 1-12.
- priority() - Element in annotation type jakarta.enterprise.concurrent.ManagedThreadFactoryDefinition
-
Priority for platform threads created by this thread factory.
- propagated() - Element in annotation type jakarta.enterprise.concurrent.ContextServiceDefinition
-
Types of context to capture from the requesting thread and propagate to a thread that runs the contextual task or action.
Q
- qualifiers() - Element in annotation type jakarta.enterprise.concurrent.ContextServiceDefinition
-
List of required
qualifier annotations. - qualifiers() - Element in annotation type jakarta.enterprise.concurrent.ManagedExecutorDefinition
-
List of required
qualifier annotations. - qualifiers() - Element in annotation type jakarta.enterprise.concurrent.ManagedScheduledExecutorDefinition
-
List of required
qualifier annotations. - qualifiers() - Element in annotation type jakarta.enterprise.concurrent.ManagedThreadFactoryDefinition
-
List of required
qualifier annotations.
R
- Result() - Constructor for class jakarta.enterprise.concurrent.Asynchronous.Result
- run() - Method in class jakarta.enterprise.concurrent.ManagedExecutors.RunnableAdapter
- runAsync(Runnable) - Method in interface jakarta.enterprise.concurrent.ManagedExecutorService
-
Returns a new
CompletableFuturethat is completed by a task running in this executor after it runs the given action. - runAt() - Element in annotation type jakarta.enterprise.concurrent.Asynchronous
-
Establishes a schedule for repeated execution of the method.
- RunnableAdapter(Runnable, Map, ManagedTaskListener) - Constructor for class jakarta.enterprise.concurrent.ManagedExecutors.RunnableAdapter
S
- schedule(Runnable, Trigger) - Method in interface jakarta.enterprise.concurrent.ManagedScheduledExecutorService
-
Creates and executes a task based on a Trigger.
- schedule(Callable, Trigger) - Method in interface jakarta.enterprise.concurrent.ManagedScheduledExecutorService
-
Creates and executes a task based on a Trigger.
- Schedule - Annotation Type in jakarta.enterprise.concurrent
-
Defines schedules for
scheduled asynchronous methods. - seconds - Variable in class jakarta.enterprise.concurrent.CronTrigger
- seconds() - Element in annotation type jakarta.enterprise.concurrent.Schedule
-
Seconds at which the asynchronous method aims to run.
- seconds(int...) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Configure the seconds cron field, overwriting any previous value for seconds.
- seconds(String) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Configure the seconds cron field, overwriting any previous value for seconds.
- SECURITY - Static variable in annotation type jakarta.enterprise.concurrent.ContextServiceDefinition
-
Context that controls the credentials that are associated with the thread, including the caller subject and invocation/RunAs subject.
- serialVersionUID - Static variable in exception class jakarta.enterprise.concurrent.AbortedException
- serialVersionUID - Static variable in exception class jakarta.enterprise.concurrent.SkippedException
- setFuture(CompletableFuture) - Static method in class jakarta.enterprise.concurrent.Asynchronous.Result
-
Before invoking the asynchronous method implementation on a thread, the Jakarta EE Product Provider invokes this method to make available to the asynchronous method implementation the same
CompletableFuturethat the Jakarta EE Product Provider returns to the caller. - skipIfLateBy() - Element in annotation type jakarta.enterprise.concurrent.Schedule
-
Seconds after which an execution that is late to start should be skipped rather than starting it late.
- SkippedException - Exception Class in jakarta.enterprise.concurrent
-
Exception indicating that the result of a value-producing task cannot be retrieved because the task run was skipped.
- SkippedException() - Constructor for exception class jakarta.enterprise.concurrent.SkippedException
-
Constructs an SkippedException with null as its detail message.
- SkippedException(String) - Constructor for exception class jakarta.enterprise.concurrent.SkippedException
-
Constructs an SkippedException exception with the specified detail message.
- SkippedException(String, Throwable) - Constructor for exception class jakarta.enterprise.concurrent.SkippedException
-
Constructs an SkippedException exception with the specified detail message and cause.
- SkippedException(Throwable) - Constructor for exception class jakarta.enterprise.concurrent.SkippedException
-
Constructs an SkippedException exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
- skipRun(LastExecution, ZonedDateTime) - Method in interface jakarta.enterprise.concurrent.ZonedTrigger
-
Return true if this run instance should be skipped.
- skipRun(LastExecution, Date) - Method in interface jakarta.enterprise.concurrent.Trigger
-
Return true if this run instance should be skipped.
- skipRun(LastExecution, Date) - Method in interface jakarta.enterprise.concurrent.ZonedTrigger
-
Return true if this run instance should be skipped.
- supplyAsync(Supplier) - Method in interface jakarta.enterprise.concurrent.ManagedExecutorService
-
Returns a new
CompletableFuturethat is completed by a task running in this executor after it runs the given action. - SUSPEND - Static variable in interface jakarta.enterprise.concurrent.ManagedTask
-
Constant for the "SUSPEND" value of the TRANSACTION execution property.
T
- task - Variable in class jakarta.enterprise.concurrent.ManagedExecutors.CallableAdapter
- task - Variable in class jakarta.enterprise.concurrent.ManagedExecutors.RunnableAdapter
- taskAborted(Future, ManagedExecutorService, Object, Throwable) - Method in interface jakarta.enterprise.concurrent.ManagedTaskListener
-
Called when a task's Future has been cancelled anytime during the life of a task.
- taskDone(Future, ManagedExecutorService, Object, Throwable) - Method in interface jakarta.enterprise.concurrent.ManagedTaskListener
-
Called when a submitted task has completed running, either successfully or failed due to any exception thrown from the task, task being cancelled, rejected, or aborted.
- taskListener - Variable in class jakarta.enterprise.concurrent.ManagedExecutors.Adapter
- taskStarting(Future, ManagedExecutorService, Object) - Method in interface jakarta.enterprise.concurrent.ManagedTaskListener
-
This method is called before the task is about to start.
- taskSubmitted(Future, ManagedExecutorService, Object) - Method in interface jakarta.enterprise.concurrent.ManagedTaskListener
-
Called after the task has been submitted to the Executor.
- ThreadContextProvider - Interface in jakarta.enterprise.concurrent.spi
-
Third party providers of thread context implement this interface to participate in thread context capture and propagation.
- ThreadContextRestorer - Interface in jakarta.enterprise.concurrent.spi
-
Restores the prior context on a thread after a contextual task or action completes.
- ThreadContextSnapshot - Interface in jakarta.enterprise.concurrent.spi
-
An immutable snapshot of a particular type of thread context.
- toString() - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Readable representation of the CronTrigger, which displays fields in list form or with the * character for brevity.
- toStringBuilder(StringBuilder, String, int[], int) - Method in class jakarta.enterprise.concurrent.CronTrigger
-
Utility method for repeated logic in toString.
- TRANSACTION - Static variable in annotation type jakarta.enterprise.concurrent.ContextServiceDefinition
-
Context that controls the transaction that is associated with the thread.
- TRANSACTION - Static variable in interface jakarta.enterprise.concurrent.ManagedTask
-
Execution property to be returned in
ManagedTask.getExecutionProperties()orContextService.createContextualProxy()to inform the Jakarta EE Product Provider under which transaction should the task or proxy method of contextual proxy object be executed in. - Trigger - Interface in jakarta.enterprise.concurrent
-
Triggers allow application developers to plug in rules for when and how often a task should run.
U
- unchanged() - Element in annotation type jakarta.enterprise.concurrent.ContextServiceDefinition
-
Types of context that are left alone when a thread runs the contextual task or action.
- USE_TRANSACTION_OF_EXECUTION_THREAD - Static variable in interface jakarta.enterprise.concurrent.ManagedTask
-
Constant for the "USE_TRANSACTION_OF_EXECUTION_THREAD" value of the TRANSACTION execution property.
V
- value() - Element in annotation type jakarta.enterprise.concurrent.ContextServiceDefinition.List
- value() - Element in annotation type jakarta.enterprise.concurrent.ManagedExecutorDefinition.List
- value() - Element in annotation type jakarta.enterprise.concurrent.ManagedScheduledExecutorDefinition.List
- value() - Element in annotation type jakarta.enterprise.concurrent.ManagedThreadFactoryDefinition.List
- virtual() - Element in annotation type jakarta.enterprise.concurrent.ManagedExecutorDefinition
-
Indicates whether this executor is requested to create virtual
threadsfor tasks that do not run inline. - virtual() - Element in annotation type jakarta.enterprise.concurrent.ManagedScheduledExecutorDefinition
-
Indicates whether this executor is requested to create virtual
threadsfor tasks that do not run inline. - virtual() - Element in annotation type jakarta.enterprise.concurrent.ManagedThreadFactoryDefinition
-
Indicates whether this thread factory is requested to create virtual
threads.
W
- withContextCapture(CompletableFuture) - Method in interface jakarta.enterprise.concurrent.ContextService
-
Returns a new
CompletableFuturethat is completed by the completion of the specified stage. - withContextCapture(CompletionStage) - Method in interface jakarta.enterprise.concurrent.ContextService
-
Returns a new
CompletionStagethat is completed by the completion of the specified stage.
Z
- ZERO - Static variable in class jakarta.enterprise.concurrent.CronTrigger
- zone - Variable in class jakarta.enterprise.concurrent.CronTrigger
- zone() - Element in annotation type jakarta.enterprise.concurrent.Schedule
-
Time zone id, such as
America/ChicagoorAmerica/Los_Angeles, which identifies the time zone of the schedule. - ZonedTrigger - Interface in jakarta.enterprise.concurrent
-
Triggers allow application developers to plug in rules for when and how often a task should run.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form