com.google.appengine.api.taskqueue.dev
Interface LocalTaskQueueCallback
-
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- LocalTaskQueueTestConfig.DeferredTaskCallback, LocalTaskQueueTestConfig.ServletInvokingTaskCallback
public interface LocalTaskQueueCallback extends java.io.Serializable
A callback that is asynchronously invoked by the local Task Queue. Even though the interface is defined in terms of a url fetch and its response, implementors are free to execute the request in any way they see fit.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description int
execute(URLFetchServicePb.URLFetchRequest req)
Execute the provided url fetch request.void
initialize(java.util.Map<java.lang.String,java.lang.String> properties)
This method will be invoked fromLocalTaskQueue#init(com.google.appengine.tools.development.LocalServiceContext, Map)
forwarding theproperties
parameter.
-
-
-
Method Detail
-
initialize
void initialize(java.util.Map<java.lang.String,java.lang.String> properties)
This method will be invoked fromLocalTaskQueue#init(com.google.appengine.tools.development.LocalServiceContext, Map)
forwarding theproperties
parameter.
-
execute
int execute(URLFetchServicePb.URLFetchRequest req)
Execute the provided url fetch request.- Parameters:
req
- The url fetch request- Returns:
- The HTTP status code of the fetch.
-
-