com.google.appengine.api.taskqueue
Interface DeferredTask
-
- All Superinterfaces:
- java.lang.Runnable, java.io.Serializable
public interface DeferredTask extends java.lang.Runnable, java.io.Serializable
Interface for deferred tasks. Classes implementing this interface may useTaskOptions.payload(DeferredTask)
to serialize theDeferredTask
into the payload of the task definition. TheRunnable.run()
method will be called when the task is received by the built in DeferredTask servlet.Normal return from this method is considered success and will not retry unless
DeferredTaskContext.markForRetry()
is called. Exceptions thrown from this method will indicate a failure and will be processed as a retry attempt unlessDeferredTaskContext.setDoNotRetry(boolean)
was set totrue
.