DoctrineReceiver
in package
implements
ListableReceiverInterface, MessageCountAwareInterface
Tags
Table of Contents
Interfaces
- ListableReceiverInterface
- Used when a receiver has the ability to list messages and find specific messages.
- MessageCountAwareInterface
Constants
- MAX_RETRIES = 3
Properties
- $connection : mixed
- $retryingSafetyCounter : int
- $serializer : mixed
Methods
- __construct() : mixed
- ack() : void
- {@inheritdoc}
- all() : array<string|int, Envelope>|iterable<string|int, mixed>
- Returns all the messages (up to the limit) in this receiver.
- find() : Envelope|null
- Returns the Envelope by id or none.
- get() : iterable<string|int, mixed>
- {@inheritdoc}
- getMessageCount() : int
- Returns the number of messages waiting to be handled.
- reject() : void
- {@inheritdoc}
- createEnvelopeFromData() : Envelope
- findDoctrineReceivedStamp() : DoctrineReceivedStamp
Constants
MAX_RETRIES
private
mixed
MAX_RETRIES
= 3
Properties
$connection
private
mixed
$connection
$retryingSafetyCounter
private
int
$retryingSafetyCounter
= 0
$serializer
private
mixed
$serializer
Methods
__construct()
public
__construct(Connection $connection[, SerializerInterface $serializer = null ]) : mixed
Parameters
- $connection : Connection
- $serializer : SerializerInterface = null
ack()
{@inheritdoc}
public
ack(Envelope $envelope) : void
Parameters
- $envelope : Envelope
all()
Returns all the messages (up to the limit) in this receiver.
public
all([int $limit = null ]) : array<string|int, Envelope>|iterable<string|int, mixed>
Parameters
- $limit : int = null
Return values
array<string|int, Envelope>|iterable<string|int, mixed>find()
Returns the Envelope by id or none.
public
find(mixed $id) : Envelope|null
Parameters
- $id : mixed
Return values
Envelope|nullget()
{@inheritdoc}
public
get() : iterable<string|int, mixed>
Return values
iterable<string|int, mixed>getMessageCount()
Returns the number of messages waiting to be handled.
public
getMessageCount() : int
Return values
intreject()
{@inheritdoc}
public
reject(Envelope $envelope) : void
Parameters
- $envelope : Envelope
createEnvelopeFromData()
private
createEnvelopeFromData(array<string|int, mixed> $data) : Envelope
Parameters
- $data : array<string|int, mixed>
Return values
EnvelopefindDoctrineReceivedStamp()
private
findDoctrineReceivedStamp(Envelope $envelope) : DoctrineReceivedStamp
Parameters
- $envelope : Envelope