Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

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.

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

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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