StagesOutboxJobs
trait StagesOutboxJobs
Constants
| protected OUTBOX_FORWARDED_CONTEXT_KEY |
|
Properties
| protected bool | $dispatchViaOutbox | Whether this connection stages jobs through the outbox by default. |
Methods
Determine whether the job selects outbox delivery.
Run a child attempt or handler with its own forwarding context.
Determine whether this driver needs SQL staging for the selected job.
Select an explicit transaction for a local or failover after-commit fallback.
Stage a single job through its normal guarded enqueue lifecycle.
Stage selected jobs in owner groups and return the direct remainder.
Build a byte-preserving row from a finalized payload.
Expand the logical destination without applying publication-time forwarding.
Add metadata required while the original job is still available.
Capture transport options that cannot be recovered from the stored envelope.
Determine when a stored message may first be published.
Details
at line 32
protected bool
shouldDispatchViaOutbox(object|string $job)
Determine whether the job selects outbox delivery.
at line 44
protected mixed
withOutboxForwarding(array|null $forwarded, callable $callback)
Run a child attempt or handler with its own forwarding context.
at line 68
protected bool
shouldStageViaOutbox(object|string $job)
Determine whether this driver needs SQL staging for the selected job.
at line 76
protected string|null
resolveOutboxCommitConnection(DatabaseTransactionsManager $transactions, object|string $job)
Select an explicit transaction for a local or failover after-commit fallback.
at line 97
protected string
enqueueViaOutbox(object|string $job, string $payload, string|null $queue, DateInterval|DateTimeInterface|int|null $delay)
Stage a single job through its normal guarded enqueue lifecycle.
at line 124
protected array
stageOutboxJobs(array $jobs, mixed $data, string|null $queue)
Stage selected jobs in owner groups and return the direct remainder.
at line 207
protected array
prepareOutboxRow(object|string $job, string $payload, string|null $queue, DateInterval|DateTimeInterface|int|null $delay)
Build a byte-preserving row from a finalized payload.
at line 245
protected string|null
resolveOutboxQueue(string|null $queue)
Expand the logical destination without applying publication-time forwarding.
at line 253
protected string
preparePayloadForOutbox(object|string $job, string $payload)
Add metadata required while the original job is still available.
at line 261
protected array
prepareOutboxOptions(object|string $job, string|null $queue, string $payload)
Capture transport options that cannot be recovered from the stored envelope.
at line 269
protected int
availableAtForOutbox(string|null $queue, int|null $deliverAt)
Determine when a stored message may first be published.