abstract classe QueueAdapter (Voir la source)

Méthodes

string
serializeProducer(ProducerService $producer)

Create producer serialization

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
push(ProducerService $producer)

Push new producer

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

Paramètres

ProducerService $producer

Valeur de retour

string

ProducerService unserializeProducer(string $producer)

Create producer unserialize

Paramètres

string $producer

Valeur de retour

ProducerService

abstract QueueAdapter configure(array $config)

Make adapter configuration

Paramètres

array $config

Valeur de retour

QueueAdapter

abstract void setWatch(string $queue)

Watch the the queue name

Paramètres

string $queue

Valeur de retour

void

abstract void setRetry(int $retry)

Set the retry value

Paramètres

int $retry

Valeur de retour

void

abstract void push(ProducerService $producer)

Push new producer

Paramètres

ProducerService $producer

Valeur de retour

void

abstract int size(string $queue)

Get the queue size

Paramètres

string $queue

Valeur de retour

int

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

Delete a message from the queue.

Paramètres

string $queue
string|int $id

Valeur de retour

void

abstract string getQueue(string $queue = null)

Get the queue or return the default.

Paramètres

string $queue

Valeur de retour

string

abstract void run(string|null $queue = null)

Start the worker server

Paramètres

string|null $queue

Valeur de retour

void