DeferredTask (Google App Engine API for Java)
Stay organized with collections
Save and categorize content based on your preferences.
-
- All Superinterfaces:
- java.lang.Runnable, java.io.Serializable
public interface DeferredTask
extends java.lang.Runnable, java.io.Serializable
-
-
Method Summary
-
Methods inherited from interface java.lang.Runnable
run
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."],[[["The `DeferredTask` interface is designed for creating tasks that can be executed later, extending both `Runnable` and `Serializable`."],["Implementing classes use `TaskOptions.payload(DeferredTask)` to serialize themselves into the task's payload."],["The `Runnable.run()` method is invoked when the task is processed by the built-in `DeferredTask` servlet."],["A normal return from `run()` indicates successful task completion, with no retry unless `DeferredTaskContext.markForRetry()` is called."],["Exceptions in the `run()` method lead to a retry attempt, unless `DeferredTaskContext.setDoNotRetry(boolean)` was set to true."]]],[]]