Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-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()
           
 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 String toString()

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.6.0.0

E15725-01


Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.