JobHandle.Listener<T>, JobHandle.State| Modifier and Type | Field and Description |
|---|---|
protected List<JobHandle.Listener<T>> |
listeners |
protected JobHandle.State |
state |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJobHandle() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(JobHandle.Listener<T> l) |
boolean |
changeState(JobHandle.State newState)
Changes the state of this job handle, making sure that illegal state transitions are ignored.
|
protected abstract Throwable |
error() |
JobHandle.State |
getState() |
protected abstract T |
result() |
protected final List<JobHandle.Listener<T>> listeners
protected volatile JobHandle.State state
public JobHandle.State getState()
public void addListener(JobHandle.Listener<T> l)
addListener in interface JobHandle<T>public boolean changeState(JobHandle.State newState)
protected abstract T result()
protected abstract Throwable error()
Copyright © 2017 Cloudera Inc. All rights reserved.