Skip navigation links
com.tangosol.coherence.commonj
Class WorkManager.WorkHolder.Event
java.lang.Object
com.tangosol.util.Base
com.tangosol.coherence.commonj.WorkManager.WorkHolder.Event
- All Implemented Interfaces:
- commonj.work.WorkEvent
- Enclosing class:
- WorkManager.WorkHolder
-
protected class WorkManager.WorkHolder.Event
- extends Base
- implements commonj.work.WorkEvent
A WorkEvent implementation.
Fields inherited from interface commonj.work.WorkEvent |
WORK_ACCEPTED, WORK_COMPLETED, WORK_REJECTED, WORK_STARTED |
WorkManager.WorkHolder.Event
public WorkManager.WorkHolder.Event(int nType)
- Construct a WorkEvent. <p/> A reason we only need to pass the event type to the constructor is that if some one holds a reference to an Event object, all other information could be retrieved from the parent WorkHolder and is not a subject to change.
- Parameters:
nType
- the event type
getType
public int getType()
- Return an event type.
-
- Specified by:
getType
in interface commonj.work.WorkEvent
-
- Returns:
- an event type
getWorkItem
public commonj.work.WorkItem getWorkItem()
-
- Specified by:
getWorkItem
in interface commonj.work.WorkEvent
getException
public commonj.work.WorkException getException()
-
- Specified by:
getException
in interface commonj.work.WorkEvent
toString
public String toString()
Skip navigation links
Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.