Java 8 has reached end of support
and will be
deprecated
on January 31, 2026. After deprecation, you won't be able to deploy Java 8
applications, even if your organization previously used an organization policy to
re-enable deployments of legacy runtimes. Your existing Java
8 applications will continue to run and receive traffic after their
deprecation date. We recommend that
you
migrate to the latest supported version of Java.
ApiProxy.ApiResultFuture (Google App Engine API for Java)
Stay organized with collections
Save and categorize content based on your preferences.
-
- All Superinterfaces:
- java.util.concurrent.Future<T>
- Enclosing class:
- ApiProxy
public static interface ApiProxy.ApiResultFuture<T>
extends java.util.concurrent.Future<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
-
Methods inherited from interface java.util.concurrent.Future
cancel, get, get, isCancelled, isDone
-
-
Method Detail
-
getWallclockTimeInMillis
long getWallclockTimeInMillis()
Returns the amount of wallclock time, measured in milliseconds,
that this API call took to complete, as measured from the
client side.
- Throws:
java.lang.IllegalStateException
- If the RPC has not yet completed.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["\u003cp\u003e\u003ccode\u003eApiProxy.ApiResultFuture<T>\u003c/code\u003e is an interface that extends \u003ccode\u003ejava.util.concurrent.Future<T>\u003c/code\u003e to offer more detailed information on API call timing and resource consumption.\u003c/p\u003e\n"],["\u003cp\u003eObjects returned from \u003ccode\u003eApiProxy.makeAsyncCall\u003c/code\u003e may implement this interface, although it's not guaranteed for all Remote Procedure Calls (RPCs).\u003c/p\u003e\n"],["\u003cp\u003eThe interface includes the method \u003ccode\u003egetCpuTimeInMegaCycles()\u003c/code\u003e which returns the CPU time consumed by the API call across backend servers, measured in millions of CPU cycles.\u003c/p\u003e\n"],["\u003cp\u003eThe method \u003ccode\u003egetWallclockTimeInMillis()\u003c/code\u003e returns the total wallclock time in milliseconds taken by the API call, as measured from the client side.\u003c/p\u003e\n"],["\u003cp\u003eBoth methods \u003ccode\u003egetCpuTimeInMegaCycles()\u003c/code\u003e and \u003ccode\u003egetWallclockTimeInMillis()\u003c/code\u003e will throw \u003ccode\u003ejava.lang.IllegalStateException\u003c/code\u003e if the associated RPC has not yet finished.\u003c/p\u003e\n"]]],[],null,[]]