QueueConfigDefinition
final class QueueConfigDefinition extends AbstractConfigDefinition (View source)
Builds typed queue configuration entries for transport topology, handlers, and database lease policy.
Properties
| protected mixed[] | $data | from AbstractConfigDefinition |
Methods
Replaces one configuration value at a dot-separated path.
Appends one configuration value at a dot-separated list path.
Starts an empty queue definition that can be composed with framework or application defaults.
Returns the registry key under which queue definitions are merged.
Selects the transport used when dispatch does not name one explicitly.
Replaces the enabled built-in transport list while preserving caller order.
Selects the active database queue table without creating or migrating it.
Selects the terminal failed-job table without creating or migrating it.
Configures how long one database delivery remains exclusively owned without renewal.
Configures how many database reservations may execute before crash recovery quarantines the job.
Associates a message class with the handler resolved when that message is executed.
Details
toArray
array
toArray()
No description
set
protected AbstractConfigDefinition
set(string $path, mixed $value)
Replaces one configuration value at a dot-separated path.
append
protected AbstractConfigDefinition
append(string $path, mixed $value)
Appends one configuration value at a dot-separated list path.
create
static QueueConfigDefinition
create()
Starts an empty queue definition that can be composed with framework or application defaults.
moduleKey
static string
moduleKey()
Returns the registry key under which queue definitions are merged.
defaultTransport
QueueConfigDefinition
defaultTransport(string $transport)
Selects the transport used when dispatch does not name one explicitly.
transports
QueueConfigDefinition
transports(array $transports)
Replaces the enabled built-in transport list while preserving caller order.
databaseTable
QueueConfigDefinition
databaseTable(string $table)
Selects the active database queue table without creating or migrating it.
failedTable
QueueConfigDefinition
failedTable(string $table)
Selects the terminal failed-job table without creating or migrating it.
databaseLeaseSeconds
QueueConfigDefinition
databaseLeaseSeconds(int $seconds)
Configures how long one database delivery remains exclusively owned without renewal.
databaseMaxAttempts
QueueConfigDefinition
databaseMaxAttempts(int $attempts)
Configures how many database reservations may execute before crash recovery quarantines the job.
handler
QueueConfigDefinition
handler(string $messageClass, callable|string $handler)
Associates a message class with the handler resolved when that message is executed.