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.SerializableA 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 intexecute(URLFetchServicePb.URLFetchRequest req)Execute the provided url fetch request.voidinitialize(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 thepropertiesparameter.
-
-
-
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 thepropertiesparameter.
-
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.
-
-