Skip to content

ReservedJob

A JobPayload claimed off a PollableQueueDriverInterface by reserve().

$id is driver-specific (e.g. a row id) and is only meaningful back to the same driver via ack()/release()/discard().

final readonly class ReservedJob

SourceReservedJob.php
PropertyTypeDescription
$idstringreadonly.
$payloadJobPayloadreadonly.

public function __construct(string $id, JobPayload $payload): mixed

ParameterTypeDescription
$idstring
$payloadJobPayload

Returns mixed