class BeanstalkdAdapter extends QueueAdapter (View source)

Methods

string
serializeProducer(ProducerService $producer)

Create producer serialization

configure(array $queue)

Configure Beanstalkd driver

setWatch(string $name)

Get connexion

setRetry(int $retry)

Get connexion

push(ProducerService $producer)

Queue a job

size(string $queue = null)

Get the size of the queue.

void
deleteJob(string $queue, string|int $id)

Delete a message from the Beanstalk queue.

string
getQueue(string $queue = null)

Get the queue or return the default.

run(string $queue = null)

Run the worker

Details

string serializeProducer(ProducerService $producer)

Create producer serialization

Parameters

ProducerService $producer

Return Value

string

configure(array $queue)

Configure Beanstalkd driver

Parameters

array $queue

setWatch(string $name)

Get connexion

Parameters

string $name

setRetry(int $retry)

Get connexion

Parameters

int $retry

push(ProducerService $producer)

Queue a job

Parameters

ProducerService $producer

size(string $queue = null)

Get the size of the queue.

Parameters

string $queue

void deleteJob(string $queue, string|int $id)

Delete a message from the Beanstalk queue.

Parameters

string $queue
string|int $id

Return Value

void

string getQueue(string $queue = null)

Get the queue or return the default.

Parameters

string $queue

Return Value

string

run(string $queue = null)

Run the worker

Parameters

string $queue