Return the result of the provided Future, converting all checked exceptions except
those of the provided type to unchecked exceptions so the caller doesn't have to handle them.
If an ExecutionException is thrown and the type of the cause does
not equal exceptionClass the cause is wrapped in a RuntimeException. If the
type of the cause does equal exceptionClass the cause itself is thrown. If an InterruptedException is thrown it is wrapped in a DatastoreFailureException.
Thrown If an ExecutionException with a cause of the appropriate type is caught.
<T>quietGet(Future<T> future)
publicstaticT<T>quietGet(Future<T>future)
Return the result of the provided Future, converting all checked exceptions to
unchecked exceptions so the caller doesn't have to handle them. If an ExecutionException is thrown the cause is wrapped in a RuntimeException. If an InterruptedException is thrown it is wrapped in a DatastoreFailureException.
[[["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-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eFutureHelper\u003c/code\u003e is a utility class designed to simplify working with \u003ccode\u003eFuture\u003c/code\u003e objects within the synchronous datastore API.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits members from \u003ccode\u003ejava.lang.Object\u003c/code\u003e, including methods like \u003ccode\u003eclone\u003c/code\u003e, \u003ccode\u003eequals\u003c/code\u003e, and \u003ccode\u003ewait\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003equietGet\u003c/code\u003e methods allow retrieving the result of a \u003ccode\u003eFuture\u003c/code\u003e, handling checked exceptions by converting them to unchecked exceptions.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003equietGet\u003c/code\u003e methods deal with \u003ccode\u003eExecutionException\u003c/code\u003e by wrapping its cause in a \u003ccode\u003eRuntimeException\u003c/code\u003e or throwing the cause itself if it is of a specific type.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eInterruptedException\u003c/code\u003e is handled by wrapping it in a \u003ccode\u003eDatastoreFailureException\u003c/code\u003e when using the \u003ccode\u003equietGet\u003c/code\u003e methods.\u003c/p\u003e\n"]]],[],null,[]]