abstract class QueueAdapter (View source)

Methods

string
serializeProducer(ProducerService $producer)

Create producer serialization

configure(array $config)

Make adapter configuration

setWatch(string $queue)

Watch the the queue name

setRetry(int $retry)

Set the retry value

push(ProducerService $producer)

Push new producer

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

Parameters

ProducerService $producer

Return Value

string

abstract configure(array $config)

Make adapter configuration

Parameters

array $config

abstract setWatch(string $queue)

Watch the the queue name

Parameters

string $queue

abstract setRetry(int $retry)

Set the retry value

Parameters

int $retry

abstract push(ProducerService $producer)

Push new producer

Parameters

ProducerService $producer

abstract size(string $queue)

Get the queue size

Parameters

string $queue

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

Delete a message from the queue.

Parameters

string $queue
string|int $id

Return Value

void

abstract string getQueue(string $queue = null)

Get the queue or return the default.

Parameters

string $queue

Return Value

string

abstract run(string $queue = null)

Start the worker server

Parameters

string $queue