QueueAdapter
abstract classe QueueAdapter (Voir la source)
Méthodes
string
unserializeProducer(string $producer)
Create producer unserialize
configure(array $config)
Make adapter configuration
void
setWatch(string $queue)
Watch the the queue name
void
setRetry(int $retry)
Set the retry value
void
int
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.
void
run(string|null $queue = null)
Start the worker server
Détails
string
serializeProducer(ProducerService $producer)
Create producer serialization
ProducerService
unserializeProducer(string $producer)
Create producer unserialize
abstract QueueAdapter
configure(array $config)
Make adapter configuration
abstract void
setWatch(string $queue)
Watch the the queue name
abstract void
setRetry(int $retry)
Set the retry value
abstract void
push(ProducerService $producer)
Push new producer
abstract int
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 void
run(string|null $queue = null)
Start the worker server