T - The type of the valuespublic abstract class Action<T> extends java.lang.Object implements Consumer<Event<T>>
| Modifier | Constructor and Description |
|---|---|
protected |
Action(Observable observable,
java.lang.Object successKey) |
protected |
Action(Observable observable,
java.lang.Object successKey,
java.lang.Object failureKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Event<T> tEvent)
Execute the logic of the action, accepting the given parameter.
|
protected abstract void |
doAccept(Event<T> ev) |
java.lang.Object |
getFailureKey() |
Observable |
getObservable() |
java.lang.Object |
getSuccessKey() |
protected void |
notifyError(java.lang.Throwable error)
Notify this
Composable that an error is being propagated through this Observable. |
protected void |
notifyValue(Event<?> value) |
java.lang.String |
toString() |
protected Action(Observable observable, java.lang.Object successKey, java.lang.Object failureKey)
protected Action(Observable observable, java.lang.Object successKey)
public final void accept(Event<T> tEvent)
Consumerpublic Observable getObservable()
public java.lang.Object getSuccessKey()
public java.lang.Object getFailureKey()
public java.lang.String toString()
toString in class java.lang.Objectprotected void notifyValue(Event<?> value)
protected void notifyError(java.lang.Throwable error)
Composable that an error is being propagated through this Observable.error - the error to propagate