Class to access the beanstalk queue service. Partially implements the protocol version 1.2
use Phalcon\Queue\Beanstalk; $queue = new Beanstalk( [ "host" => "127.0.0.1", "port" => 11300, "persistent" => true, ] );
Makes a connection to the Beanstalkd server
Puts a job on the queue using specified tube.
Reserves/locks a ready job from the specified tube.
Change the active tube. By default the tube is “default”.
The watch command adds the named tube to the watch list for the current connection.
It removes the named tube from the watch list for the current connection.
Can delay any new job being reserved for a given time.
The kick command applies only to the currently used tube.
Gives statistical information about the system as a whole.
Gives statistical information about the specified tube if it exists.
Returns a list of all existing tubes.
Returns the tube currently being used by the client.
Returns a list tubes currently being watched by the client.
Inspect the next ready job.
Return the next job in the list of buried jobs.
Return the next job in the list of buried jobs.
The peek commands let the client inspect a job in the system.
Reads the latest status from the Beanstalkd server
Fetch a YAML payload from the Beanstalkd server
Reads a packet from the socket. Prior to reading from the socket will check for availability of the connection.
Writes data to the socket. Performs a connection if none is available
Closes the connection to the beanstalk server.
Simply closes the connection.
© 2011–2017 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Queue_Beanstalk.html