Interface for deferred tasks. Classes implementing this interface may use TaskOptions#payload(DeferredTask) to serialize the DeferredTask into the payload of the
task definition. The DeferredTask#run() method will be called when the task is received
by the built in DeferredTask servlet.
[[["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-03-05 UTC."],[[["`DeferredTask` is an interface for tasks that can be serialized into a task definition's payload using `TaskOptions#payload(DeferredTask)`."],["The `DeferredTask#run()` method is invoked when the task is handled by the built-in `DeferredTask` servlet."],["A successful execution of the `DeferredTask#run()` method is considered to have been successful unless `DeferredTaskContext#markForRetry` is specifically called."],["Exceptions thrown by `DeferredTask#run()` are treated as a failure, initiating a retry unless `DeferredTaskContext#setDoNotRetry(boolean)` is true."],["The `DeferredTask` interface implements both `Runnable` and `Serializable`."]]],[]]