App Engine PHP SDK  v1 rev.445
The PHP runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | List of all members
google\appengine\api\taskqueue\PushQueue Class Reference

Public Member Functions

static __construct ($name= 'default')
 
 getName ()
 
 addTasks ($tasks)
 

Public Attributes

const MAX_TASKS_PER_ADD = 100
 

Detailed Description

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.

Constructor & Destructor Documentation

static google\appengine\api\taskqueue\PushQueue::__construct (   $name = 'default')

Construct a PushQueue

Parameters
string$nameThe name of the queue.

Member Function Documentation

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
TaskAlreadyExistsExceptionif 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.
TaskQueueExceptionif there was a problem using the service.
google\appengine\api\taskqueue\PushQueue::getName ( )

Return the queue's name.

Returns
string The queue's name.

Member Data Documentation

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: