A PushQueue executes PushTasks by sending the task back to the application in the form of an HTTP request to one of the application's handlers.
static google\appengine\api\taskqueue\PushQueue::__construct |
( |
|
$name = 'default' | ) |
|
Construct a PushQueue
- Parameters
-
string | $name | The name of the queue. |
google\appengine\api\taskqueue\PushQueue::addTasks |
( |
|
$tasks | ) |
|
Add tasks to the queue.
- Parameters
-
PushTask[] | $tasks The tasks to be added to the queue. |
- Returns
- An array containing the name of each task added, with the same ordering as $tasks.
- Exceptions
-
TaskAlreadyExistsException | if a task of the same name already exists in the queue. If this exception is raised, the caller can be guaranteed that all tasks were successfully added either by this call or a previous call. Another way to express it is that, if any task failed to be added for a different reason, a different exception will be thrown. |
TaskQueueException | if there was a problem using the service. |
google\appengine\api\taskqueue\PushQueue::getName |
( |
| ) |
|
Return the queue's name.
- Returns
- string The queue's name.
const google\appengine\api\taskqueue\PushQueue::MAX_TASKS_PER_ADD = 100 |
The maximum number of tasks in a single call addTasks.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/php/sdk/google/appengine/api/taskqueue/PushQueue.php