public static interface ApiProxy.ApiResultFuture<T>
extends java.util.concurrent.Future<T>
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.
Modifier and Type | Method and Description |
---|---|
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.
|
long getCpuTimeInMegaCycles()
java.lang.IllegalStateException
- If the RPC has not yet completed.long getWallclockTimeInMillis()
java.lang.IllegalStateException
- If the RPC has not yet completed.