|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
javax.resource.spi.work.WorkEvent
public class WorkEvent
A work event.
| Field Summary | |
|---|---|
static int |
WORK_ACCEPTED
|
static int |
WORK_COMPLETED
|
static int |
WORK_REJECTED
|
static int |
WORK_STARTED
|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
WorkEvent(java.lang.Object source,
int type,
Work work,
WorkException exn)
Called with a Work instance has been accepted. |
|
WorkEvent(java.lang.Object source,
int type,
Work work,
WorkException exn,
long startDuration)
Called with a Work instance has been accepted. |
|
| Method Summary | |
|---|---|
WorkException |
getException()
Returns the work exception |
long |
getStartDuration()
Returns the start duration. |
int |
getType()
Returns the type of the event. |
Work |
getWork()
Returns the work instance. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int WORK_ACCEPTED
public static final int WORK_COMPLETED
public static final int WORK_REJECTED
public static final int WORK_STARTED
| Constructor Detail |
|---|
public WorkEvent(java.lang.Object source,
int type,
Work work,
WorkException exn)
public WorkEvent(java.lang.Object source,
int type,
Work work,
WorkException exn,
long startDuration)
| Method Detail |
|---|
public int getType()
public Work getWork()
public long getStartDuration()
public WorkException getException()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||