|
||||||||||
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
Events that occur on work
Field Summary | |
---|---|
static int |
WORK_ACCEPTED
The WORK_ACCEPTED value |
static int |
WORK_COMPLETED
The WORK_COMPLETED value |
static int |
WORK_REJECTED
The WORK_REJECTED value |
static int |
WORK_STARTED
The WORK_STARTED value |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
WorkEvent(Object source,
int type,
Work work,
WorkException e)
Create a new WorkEvent |
|
WorkEvent(Object source,
int type,
Work work,
WorkException e,
long startDuration)
Create a new WorkEvent |
Method Summary | |
---|---|
WorkException |
getException()
Get the exception |
long |
getStartDuration()
Get the start duration |
int |
getType()
Get the type |
Work |
getWork()
Get the work |
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_REJECTED
public static final int WORK_STARTED
public static final int WORK_COMPLETED
Constructor Detail |
---|
public WorkEvent(Object source, int type, Work work, WorkException e)
source
- the source of the eventtype
- the typework
- the worke
- the exceptionpublic WorkEvent(Object source, int type, Work work, WorkException e, long startDuration)
source
- the source of the eventtype
- the typework
- the worke
- the exceptionstartDuration
- the delay in the start in millisecondsMethod Detail |
---|
public int getType()
public Work getWork()
public WorkException getException()
public long getStartDuration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |