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 WorkException
getException()
int
getType()
WorkItem
getWorkItem()
-
-
-
Constructor Detail
-
WorkEventImpl
public WorkEventImpl(WorkException e, int type, WorkItem work)
-
-
Method Detail
-
getException
public WorkException getException()
- Specified by:
getException
in 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:
getType
in 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:
getWorkItem
in interfaceWorkEvent
- Returns:
- the WorkItem that this WorkEvent is for
- See Also:
WorkEvent.getWorkItem()
-
-