public class PartialResult<R>
extends java.lang.Object
Constructor and Description |
---|
PartialResult(R initialVal,
boolean isFinal) |
Modifier and Type | Method and Description |
---|---|
R |
getFinalValue()
Blocking method to wait for and return the final value.
|
R |
initialValue() |
boolean |
isInitialValueFinal() |
<T> PartialResult<T> |
map(scala.Function1<R,T> f)
Transform this PartialResult into a PartialResult of type T.
|
PartialResult<R> |
onComplete(scala.Function1<R,scala.runtime.BoxedUnit> handler)
Set a handler to be called when this PartialResult completes.
|
void |
onFail(scala.Function1<java.lang.Exception,scala.runtime.BoxedUnit> handler)
Set a handler to be called if this PartialResult's job fails.
|
java.lang.String |
toString() |
public PartialResult(R initialVal, boolean isFinal)
public R initialValue()
public boolean isInitialValueFinal()
public R getFinalValue()
public PartialResult<R> onComplete(scala.Function1<R,scala.runtime.BoxedUnit> handler)
handler
- (undocumented)public void onFail(scala.Function1<java.lang.Exception,scala.runtime.BoxedUnit> handler)
handler
- (undocumented)public <T> PartialResult<T> map(scala.Function1<R,T> f)
f
- (undocumented)public java.lang.String toString()
toString
in class java.lang.Object