Project Versions

Tabla de Contenidos

Tema anterior

Class Phalcon\Paginator\Exception

Próximo tema

Class Phalcon\Queue\Beanstalk\Job

Esta página

Class Phalcon\Queue\Beanstalk

Class to access the beanstalk queue service. Partially implements the protocol version 1.2

Methods

public __construct ([array $options])

public connect ()

...

public put (string $data, [array $options])

Inserts jobs into the queue

public boolean|PhalconQueueBeanstalkJob reserve ([unknown $timeout])

public string|boolean choose (string $tube)

Change the active tube. By default the tube is ‘default’

public string|boolean watch (string $tube)

Change the active tube. By default the tube is ‘default’

public boolean|PhalconQueueBeanstalkJob peekReady ()

Inspect the next ready job.

protected readStatus ()

...

public string|boolean Data or `false` on error. read ([unknown $length])

Reads a packet from the socket. Prior to reading from the socket will check for availability of the connection.

protected integer|boolean write ()

Writes data to the socket. Performs a connection if none is available

public boolean disconnect ()

Closes the connection to the beanstalk server.