Interface WorkEvent
- All Known Implementing Classes:
WorkEventImpl
public interface WorkEvent
This is a work manager API based on CommonJ.
- Author:
- Torkel Dominique
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
-
Method Summary
-
Field Details
-
WORK_ACCEPTED
static final int WORK_ACCEPTED- See Also:
-
WORK_COMPLETED
static final int WORK_COMPLETED- See Also:
-
WORK_REJECTED
static final int WORK_REJECTED- See Also:
-
WORK_STARTED
static final int WORK_STARTED- See Also:
-
-
Method Details
-
getException
WorkException getException()- Returns:
- the WorkException thrown if a Work completed with exception. Null if there is no exception
- See Also:
-
getType
int getType()- Returns:
- one of the event constants that indicate the type of event this WorkEvent represents
- See Also:
-
getWorkItem
WorkItem getWorkItem()- Returns:
- the WorkItem that this WorkEvent is for
- See Also:
-