|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface ApiProxy.ApiResultFuture<T>
A subtype of Future
that provides more detailed
information about the timing and resource consumption of
particular API calls.
Objects returned from ApiProxy.makeAsyncCall(String,String,byte[],ApiConfig)
may implement
this interface. However, callers should not currently assume
that all RPCs will.
Method Summary | |
---|---|
long |
getCpuTimeInMegaCycles()
Returns the amount of CPU time consumed across any backend servers responsible for serving this API call. |
long |
getWallclockTimeInMillis()
Returns the amount of wallclock time, measured in milliseconds, that this API call took to complete, as measured from the client side. |
Methods inherited from interface java.util.concurrent.Future |
---|
cancel, get, get, isCancelled, isDone |
Method Detail |
---|
long getCpuTimeInMegaCycles()
java.lang.IllegalStateException
- If the RPC has not yet completed.long getWallclockTimeInMillis()
java.lang.IllegalStateException
- If the RPC has not yet completed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |