abstract class ProducerService (View source)

Traits

Properties

protected int $delay

Define the delay

protected string $queue

Define the queue

protected int $retry

Define the time of retry

protected int $priority

Define the priority

Methods

array
__serialize()

Prepare the instance values for serialization.

void
__unserialize(array $values)

Restore the model after serialization.

mixed
getPropertyValue(ReflectionProperty $property)

Get the property value for the given property.

int
getPriority()

Get the producer priority

int
getRetry()

Get the producer retry

string
getQueue()

Get the producer queue

int
getDelay()

Get the producer delay

void
process()

Process the producer

Details

array __serialize()

Prepare the instance values for serialization.

Return Value

array

void __unserialize(array $values)

Restore the model after serialization.

Parameters

array $values

Return Value

void

protected mixed getPropertyValue(ReflectionProperty $property)

Get the property value for the given property.

Parameters

ReflectionProperty $property

Return Value

mixed

final int getPriority()

Get the producer priority

Return Value

int

final int getRetry()

Get the producer retry

Return Value

int

final string getQueue()

Get the producer queue

Return Value

string

final int getDelay()

Get the producer delay

Return Value

int

abstract void process()

Process the producer

Return Value

void