BeanstalkdAdapter
class BeanstalkdAdapter extends QueueAdapter (View source)
Methods
configure(array $queue)
Configure Beanstalkd driver
void
setWatch(string $name)
Get connexion
void
setRetry(int $retry)
Get connexion
void
int
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.
void
run(string|null $queue = null)
Run the worker
Details
string
serializeProducer(ProducerService $producer)
Create producer serialization
ProducerService
unserializeProducer(string $producer)
Create producer unserialize
QueueAdapter
configure(array $queue)
Configure Beanstalkd driver
void
setWatch(string $name)
Get connexion
void
setRetry(int $retry)
Get connexion
void
push(ProducerService $producer)
Queue a job
int
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.
void
run(string|null $queue = null)
Run the worker