Modifier and Type | Field and Description |
---|---|
static <any> |
ANY
Common supertype for all worker state event types.
|
static <any> |
WORKER_STATE_CANCELLED
This event occurs when the state of a Worker implementation has
transitioned to the CANCELLED state.
|
static <any> |
WORKER_STATE_FAILED
This event occurs when the state of a Worker implementation has
transitioned to the FAILED state.
|
static <any> |
WORKER_STATE_READY
This event occurs when the state of a Worker implementation has
transitioned to the READY state.
|
static <any> |
WORKER_STATE_RUNNING
This event occurs when the state of a Worker implementation has
transitioned to the RUNNING state.
|
static <any> |
WORKER_STATE_SCHEDULED
This event occurs when the state of a Worker implementation has
transitioned to the SCHEDULED state.
|
static <any> |
WORKER_STATE_SUCCEEDED
This event occurs when the state of a Worker implementation has
transitioned to the SUCCEEDED state.
|
Constructor and Description |
---|
WorkerStateEvent(Worker worker,
<any> eventType)
Create a new WorkerStateEvent.
|
Modifier and Type | Method and Description |
---|---|
Worker |
getSource()
The Worker on which the Event initially occurred.
|
public static final <any> ANY
public static final <any> WORKER_STATE_READY
public static final <any> WORKER_STATE_SCHEDULED
public static final <any> WORKER_STATE_RUNNING
public static final <any> WORKER_STATE_SUCCEEDED
public static final <any> WORKER_STATE_CANCELLED
public static final <any> WORKER_STATE_FAILED
public WorkerStateEvent(Worker worker, <any> eventType)
worker
- The Worker which is firing the event. The Worker really
should be an EventTarget, otherwise the EventTarget
for the event will be null.eventType
- The type of event. This should not be null.public Worker getSource()