Queue
interface Queue
Methods
Get the size of the queue.
Get the number of pending jobs.
Get the number of delayed jobs.
Get the number of reserved jobs.
Get the creation timestamp of the oldest pending job, excluding delayed jobs.
Push a new job onto the queue.
Push a new job onto the queue.
Push a raw payload onto the queue.
Push a new job onto the queue after (n) seconds.
Push a new job onto a specific queue after (n) seconds.
Push an array of jobs onto the queue.
Get the connection name for the queue.
Set the connection name for the queue.
Details
at line 17
int
size(UnitEnum|string|null $queue = null)
Get the size of the queue.
at line 22
int
pendingSize(UnitEnum|string|null $queue = null)
Get the number of pending jobs.
at line 27
int
delayedSize(UnitEnum|string|null $queue = null)
Get the number of delayed jobs.
at line 32
int
reservedSize(UnitEnum|string|null $queue = null)
Get the number of reserved jobs.
at line 37
int|null
creationTimeOfOldestPendingJob(UnitEnum|string|null $queue = null)
Get the creation timestamp of the oldest pending job, excluding delayed jobs.
at line 42
mixed
push(object|string $job, mixed $data = '', UnitEnum|string|null $queue = null)
Push a new job onto the queue.
at line 47
mixed
pushOn(UnitEnum|string|null $queue, object|string $job, mixed $data = '')
Push a new job onto the queue.
at line 52
mixed
pushRaw(string $payload, UnitEnum|string|null $queue = null, array $options = [])
Push a raw payload onto the queue.
at line 57
mixed
later(DateInterval|DateTimeInterface|int $delay, object|string $job, mixed $data = '', UnitEnum|string|null $queue = null)
Push a new job onto the queue after (n) seconds.
at line 62
mixed
laterOn(UnitEnum|string|null $queue, DateInterval|DateTimeInterface|int $delay, object|string $job, mixed $data = '')
Push a new job onto a specific queue after (n) seconds.
at line 67
mixed
bulk(array $jobs, mixed $data = '', UnitEnum|string|null $queue = null)
Push an array of jobs onto the queue.
at line 72
Job|null
pop(UnitEnum|string|null $queue = null)
Pop the next job off of the queue.
at line 77
string
getConnectionName()
Get the connection name for the queue.
at line 84
Queue
setConnectionName(string $name)
Set the connection name for the queue.