Class WorkEventImpl
- java.lang.Object
-
- com.tangosol.coherence.servlet.commonj.impl.WorkEventImpl
-
-
Field Summary
-
Fields inherited from interface com.tangosol.coherence.servlet.commonj.WorkEvent
WORK_ACCEPTED, WORK_COMPLETED, WORK_REJECTED, WORK_STARTED
-
-
Constructor Summary
Constructors Constructor Description WorkEventImpl(WorkException e, int type, WorkItem work)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkExceptiongetException()intgetType()WorkItemgetWorkItem()
-
-
-
Constructor Detail
-
WorkEventImpl
public WorkEventImpl(WorkException e, int type, WorkItem work)
-
-
Method Detail
-
getException
public WorkException getException()
- Specified by:
getExceptionin interfaceWorkEvent- Returns:
- the WorkException thrown if a Work completed with exception. Null if there is no exception
- See Also:
WorkEvent.getException()
-
getType
public int getType()
- Specified by:
getTypein interfaceWorkEvent- Returns:
- one of the event constants that indicate the type of event this WorkEvent represents
- See Also:
WorkEvent.getType()
-
getWorkItem
public WorkItem getWorkItem()
- Specified by:
getWorkItemin interfaceWorkEvent- Returns:
- the WorkItem that this WorkEvent is for
- See Also:
WorkEvent.getWorkItem()
-
-