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.
|
void |
setFailure(Exception exception) |
void |
setFinalValue(R value) |
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)
public void onFail(scala.Function1<Exception,scala.runtime.BoxedUnit> handler)
public <T> PartialResult<T> map(scala.Function1<R,T> f)
public void setFinalValue(R value)
public void setFailure(Exception exception)
public String toString()
toString
in class Object