CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

com.tangosol.coherence.commonj
Class WorkManager.WorkHolder.Event

java.lang.Object
  extended by com.tangosol.util.Base
      extended by 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.


Field Summary
 
Fields inherited from interface commonj.work.WorkEvent
WORK_ACCEPTED, WORK_COMPLETED, WORK_REJECTED, WORK_STARTED
 
Constructor Summary
WorkManager.WorkHolder.Event(int nType)
          Construct a WorkEvent.
 
Method Summary
 commonj.work.WorkException getException()
           
 int getType()
          Return an event type.
 commonj.work.WorkItem getWorkItem()
           
 String toString()
           
 

Constructor Detail

WorkManager.WorkHolder.Event

public WorkManager.WorkHolder.Event(int nType)
Construct a WorkEvent.

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.

Method Detail

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()

CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation