public class ActionCallback extends java.lang.Object implements Disposable
Modifier and Type | Class and Description |
---|---|
static class |
ActionCallback.Chunk |
static class |
ActionCallback.Done |
static class |
ActionCallback.Rejected |
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static ActionCallback |
DONE |
protected java.lang.String |
myError |
static ActionCallback |
REJECTED |
Constructor and Description |
---|
ActionCallback() |
ActionCallback(int countToDone) |
ActionCallback(java.lang.String name) |
ActionCallback(java.lang.String name,
int countToDone) |
Modifier and Type | Method and Description |
---|---|
java.lang.Runnable |
createSetDoneRunnable() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
ActionCallback |
doWhenDone(java.lang.Runnable runnable) |
ActionCallback |
doWhenProcessed(java.lang.Runnable runnable) |
ActionCallback |
doWhenRejected(Consumer<? super java.lang.String> consumer) |
ActionCallback |
doWhenRejected(java.lang.Runnable runnable) |
java.lang.String |
getError() |
boolean |
isDone() |
boolean |
isProcessed() |
boolean |
isRejected() |
ActionCallback |
notify(ActionCallback child) |
ActionCallback |
notifyWhenDone(ActionCallback child) |
ActionCallback |
notifyWhenRejected(ActionCallback child) |
ActionCallback |
processOnDone(java.lang.Runnable runnable,
boolean requiresDone) |
ActionCallback |
reject(java.lang.String error) |
void |
setDone() |
void |
setRejected() |
java.lang.String |
toString() |
boolean |
waitFor(long msTimeout) |
public static final ActionCallback DONE
public static final ActionCallback REJECTED
protected java.lang.String myError
public ActionCallback()
public ActionCallback(java.lang.String name)
public ActionCallback(int countToDone)
public ActionCallback(java.lang.String name, int countToDone)
public void setDone()
public boolean isDone()
public boolean isRejected()
public boolean isProcessed()
public void setRejected()
public ActionCallback reject(java.lang.String error)
public java.lang.String getError()
public final ActionCallback doWhenDone(java.lang.Runnable runnable)
public final ActionCallback doWhenRejected(java.lang.Runnable runnable)
public final ActionCallback doWhenRejected(Consumer<? super java.lang.String> consumer)
public final ActionCallback doWhenProcessed(java.lang.Runnable runnable)
public final ActionCallback notifyWhenDone(ActionCallback child)
public final ActionCallback notifyWhenRejected(ActionCallback child)
public ActionCallback notify(ActionCallback child)
public final ActionCallback processOnDone(java.lang.Runnable runnable, boolean requiresDone)
public java.lang.String toString()
toString
in class java.lang.Object
public void dispose()
Disposable
dispose
in interface Disposable
public java.lang.Runnable createSetDoneRunnable()
public boolean waitFor(long msTimeout)