Skip navigation links

Oracle® Coherence Java API Reference
v3.5.1

E15583-01


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()
           
 java.lang.String toString()
           

 

Constructor Detail

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

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 java.lang.String toString()

Skip navigation links

Oracle® Coherence Java API Reference
v3.5.1

E15583-01


Copyright © 2000, 2009, Oracle. All rights reserved.