public class WorkEvent extends EventObject
| Modifier and Type | Field and Description |
|---|---|
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
|
source| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
WorkException |
getException()
Get the exception
|
long |
getStartDuration()
Get the start duration
|
int |
getType()
Get the type
|
Work |
getWork()
Get the work
|
getSource, toStringpublic static final int WORK_ACCEPTED
public static final int WORK_REJECTED
public static final int WORK_STARTED
public static final int WORK_COMPLETED
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 millisecondspublic int getType()
public Work getWork()
public WorkException getException()
public long getStartDuration()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.