Package | Description |
---|---|
jakarta.resource.spi.work |
This package contains APIs for the Work Management, Generic and Security Work Context contracts.
|
Modifier and Type | Class and Description |
---|---|
class |
RetryableWorkRejectedException
A subclass of the
WorkRejectedException that
indicates that the the service unavailability is transient. |
class |
WorkCompletedException
This exception is thrown by a
WorkManager to indicate that
a submitted Work instance has completed with an exception. |
class |
WorkRejectedException
This exception is thrown by a
WorkManager to indicate
that a submitted Work instance has been rejected. |
Modifier and Type | Method and Description |
---|---|
WorkException |
WorkEvent.getException()
Return the
WorkException . |
Modifier and Type | Method and Description |
---|---|
void |
WorkManager.doWork(Work work)
Accepts a
Work instance for processing. |
void |
WorkManager.doWork(Work work,
long startTimeout,
ExecutionContext execContext,
WorkListener workListener)
Accepts a
Work instance for processing. |
void |
WorkManager.scheduleWork(Work work)
Accepts a
Work instance for processing. |
void |
WorkManager.scheduleWork(Work work,
long startTimeout,
ExecutionContext execContext,
WorkListener workListener)
Accepts a
Work instance for processing. |
long |
WorkManager.startWork(Work work)
Accepts a
Work instance for processing. |
long |
WorkManager.startWork(Work work,
long startTimeout,
ExecutionContext execContext,
WorkListener workListener)
Accepts a
Work instance for processing. |
Constructor and Description |
---|
WorkEvent(Object source,
int type,
Work work,
WorkException exc)
Constructor.
|
WorkEvent(Object source,
int type,
Work work,
WorkException exc,
long startDuration)
Constructor.
|
Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.