QueueAdapter
abstract class QueueAdapter (View source)
Methods
string
configure(array $config)
Make adapter configuration
setWatch(string $queue)
Watch the the queue name
setRetry(int $retry)
Set the retry value
size(string $queue)
Get the queue size
void
deleteJob(string $queue, string|int $id)
Delete a message from the queue.
string
getQueue(string $queue = null)
Get the queue or return the default.
run(string $queue = null)
Start the worker server
Details
string
serializeProducer(ProducerService $producer)
Create producer serialization
abstract
configure(array $config)
Make adapter configuration
abstract
setWatch(string $queue)
Watch the the queue name
abstract
setRetry(int $retry)
Set the retry value
abstract
push(ProducerService $producer)
Push new producer
abstract
size(string $queue)
Get the queue size
abstract void
deleteJob(string $queue, string|int $id)
Delete a message from the queue.
abstract string
getQueue(string $queue = null)
Get the queue or return the default.
abstract
run(string $queue = null)
Start the worker server