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