|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.objectify.impl.ResultAdapter<T>
public class ResultAdapter<T>
Adapts a Future object to a (much more convenient) Result object.
Constructor Summary | |
---|---|
ResultAdapter(java.util.concurrent.Future<T> fut)
|
Method Summary | |
---|---|
T |
get()
Waits if necessary for the computation to complete, and then retrieves its result. |
java.util.concurrent.Future<T> |
getFuture()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultAdapter(java.util.concurrent.Future<T> fut)
Method Detail |
---|
public T get()
Result
get
in interface Result<T>
public java.util.concurrent.Future<T> getFuture()
getFuture
in interface Result<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |