public class PartialResult<R>
extends 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<Exception,scala.runtime.BoxedUnit> handler)
Set a handler to be called if this PartialResult's job fails.
|
String |
toString() |
public PartialResult(R initialVal, boolean isFinal)
public R getFinalValue()
public R initialValue()
public boolean isInitialValueFinal()
public <T> PartialResult<T> map(scala.Function1<R,T> f)
f
- (undocumented)public PartialResult<R> onComplete(scala.Function1<R,scala.runtime.BoxedUnit> handler)
handler
- (undocumented)public void onFail(scala.Function1<Exception,scala.runtime.BoxedUnit> handler)
handler
- (undocumented)public String toString()
toString
in class Object