class EventProducer extends ProducerService (View source)

Traits

Properties

protected string $queue

Define the queue

from  ProducerService
protected int $delay

Define the delay

from  ProducerService
protected int $retry

Define the time of retry

from  ProducerService
protected int $priority

Define the priority

from  ProducerService
protected bool $delete

Determine if the job can be deleted

from  ProducerService
protected string|null $id

Define the job id

from  ProducerService
protected int $attemps

Define the job attempts

from  ProducerService

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.

mixed
__construct(mixed $event, mixed $payload = null)

EventProducer constructor

int
getPriority()

Get the producer priority

string
getId()

Get the producer id

int
getAttemps()

Get the producer attemps

int
getRetry()

Get the producer retry

string
getQueue()

Get the producer queue

int
getDelay()

Get the producer delay

void
setAttemps(int $attemps)

Set the producer attemps

void
setRetry(int $retry)

Set the producer retry

void
setQueue(string $queue)

Set the producer queue

setDelay(int $delay)

Set the producer delay

void
deleteJob()

Delete the job from queue.

bool
jobShouldBeDelete()

Delete the job from queue.

void
onException(Throwable $e)

Get the job error

void
process()

Process event

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

mixed __construct(mixed $event, mixed $payload = null)

EventProducer constructor

Parameters

mixed $event
mixed $payload

Return Value

mixed

final int getPriority()

Get the producer priority

Return Value

int

string getId()

Get the producer id

Return Value

string

int getAttemps()

Get the producer attemps

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

void setAttemps(int $attemps)

Set the producer attemps

Parameters

int $attemps

Return Value

void

final void setRetry(int $retry)

Set the producer retry

Parameters

int $retry

Return Value

void

final void setQueue(string $queue)

Set the producer queue

Parameters

string $queue

Return Value

void

final setDelay(int $delay)

Set the producer delay

Parameters

int $delay

void deleteJob()

Delete the job from queue.

Return Value

void

bool jobShouldBeDelete()

Delete the job from queue.

Return Value

bool

void onException(Throwable $e)

Get the job error

Parameters

Throwable $e

Return Value

void

void process()

Process event

Return Value

void