|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vinculumtech.platform.async.Result
The Result object is returned by the invoke method on the Future
class.
Constructor Summary | |
protected |
Result(Future future)
|
Method Summary | |
Future |
getFuture()
|
java.lang.Object |
getResult()
Returns the result value. |
java.lang.Object |
getResult(long wait)
Returns the result value or a TimedOutException if the wait period expires. |
boolean |
getResultBoolean()
|
double |
getResultDouble()
|
float |
getResultFloat()
|
int |
getResultInt()
|
long |
getResultLong()
|
java.lang.Object |
getResultSafe()
Returns the result value. |
short |
getResultShort()
|
java.lang.String |
getResultString()
|
java.lang.Throwable |
getThrowable()
Returns the exception thrown by the NullaryFunction, if any. |
boolean |
hasResult()
Test if the result is available, or if there was an exception without blocking. |
boolean |
hasThrowable()
Test if an exception was returned without blocking. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Result(Future future)
Method Detail |
public Future getFuture()
public java.lang.Throwable getThrowable()
public boolean hasThrowable()
public boolean hasResult()
public boolean getResultBoolean() throws java.lang.Exception
java.lang.Exception
public int getResultInt() throws java.lang.Exception
java.lang.Exception
public long getResultLong() throws java.lang.Exception
java.lang.Exception
public float getResultFloat() throws java.lang.Exception
java.lang.Exception
public short getResultShort() throws java.lang.Exception
java.lang.Exception
public double getResultDouble() throws java.lang.Exception
java.lang.Exception
public java.lang.String getResultString() throws java.lang.Exception
java.lang.Exception
public java.lang.Object getResult() throws java.lang.Exception
java.lang.Exception
public java.lang.Object getResultSafe()
NestedFunctionException
public java.lang.Object getResult(long wait) throws TimedOutException, java.lang.Exception
TimedOutException
- thrown if the wait period expires
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |