Task and Service support listening to state events.
| Modifier and Type | Field and Description |
|---|---|
| public static final EventType | ANY
Hides javafx. |
| public static final EventType | WORKER_STATE_CANCELLED
This event occurs when the state of a Worker implementation has transitioned to the CANCELLED state. |
| public static final EventType | WORKER_STATE_FAILED
This event occurs when the state of a Worker implementation has transitioned to the FAILED state. |
| public static final EventType | WORKER_STATE_READY
This event occurs when the state of a Worker implementation has transitioned to the READY state. |
| public static final EventType | WORKER_STATE_RUNNING
This event occurs when the state of a Worker implementation has transitioned to the RUNNING state. |
| public static final EventType | WORKER_STATE_SCHEDULED
This event occurs when the state of a Worker implementation has transitioned to the SCHEDULED state. |
| public static final EventType | WORKER_STATE_SUCCEEDED
This event occurs when the state of a Worker implementation has transitioned to the SUCCEEDED state. |
| Access | Constructor and Description |
|---|---|
| public | WorkerStateEvent(Worker<V>
The Worker which is firing the event. The Worker really
should be an EventTarget, otherwise the EventTarget
for the event will be null. worker, EventType<? extends WorkerStateEvent> The type of event. This should not be null. eventType)Create a new WorkerStateEvent. |
| Modifier and Type | Method and Description |
|---|---|
| public Worker | Returns: The Worker on which the Event initially occurred.Overrides java. The Worker on which the Event initially occurred. |
| ANY | back to summary |
|---|---|
| public static final EventType<WorkerStateEvent> ANY Hides javafx. Common supertype for all worker state event types. | |
| WORKER_STATE_CANCELLED | back to summary |
|---|---|
| public static final EventType<WorkerStateEvent> WORKER_STATE_CANCELLED This event occurs when the state of a Worker implementation has transitioned to the CANCELLED state. | |
| WORKER_STATE_FAILED | back to summary |
|---|---|
| public static final EventType<WorkerStateEvent> WORKER_STATE_FAILED This event occurs when the state of a Worker implementation has transitioned to the FAILED state. | |
| WORKER_STATE_READY | back to summary |
|---|---|
| public static final EventType<WorkerStateEvent> WORKER_STATE_READY This event occurs when the state of a Worker implementation has transitioned to the READY state. | |
| WORKER_STATE_RUNNING | back to summary |
|---|---|
| public static final EventType<WorkerStateEvent> WORKER_STATE_RUNNING This event occurs when the state of a Worker implementation has transitioned to the RUNNING state. | |
| WORKER_STATE_SCHEDULED | back to summary |
|---|---|
| public static final EventType<WorkerStateEvent> WORKER_STATE_SCHEDULED This event occurs when the state of a Worker implementation has transitioned to the SCHEDULED state. | |
| WORKER_STATE_SUCCEEDED | back to summary |
|---|---|
| public static final EventType<WorkerStateEvent> WORKER_STATE_SUCCEEDED This event occurs when the state of a Worker implementation has transitioned to the SUCCEEDED state. | |
| WorkerStateEvent | back to summary |
|---|---|
| public WorkerStateEvent(Worker<V> worker, EventType<? extends WorkerStateEvent> eventType) Create a new WorkerStateEvent. Specify the worker and the event type.
| |
| getSource | back to summary |
|---|---|
| public Worker Overrides java. The Worker on which the Event initially occurred. | |