Documentation

AdapterInterface
in

Adapter interface

Tags
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
3.0.0

Table of Contents

Methods

bury()  : AdapterInterface
Move a job to the dead-letter store (terminal)
clear()  : AdapterInterface
Clear pending and reserved jobs (not dead-letter jobs)
clearDead()  : AdapterInterface
count()  : int
Count of pending + reserved jobs
countDead()  : int
delete()  : AdapterInterface
Permanently remove a job (success/ack)
deleteDeadJob()  : AdapterInterface
getDeadJob()  : mixed
getDeadJobs()  : array<string|int, mixed>
getPriority()  : string
hasDeadJobs()  : bool
hasJobs()  : bool
Whether there are pending or reserved jobs
isFifo()  : bool
isFilo()  : bool
isLifo()  : bool
isLilo()  : bool
push()  : AdapterInterface
Push a job onto the queue
release()  : AdapterInterface
Put a reserved job back to pending. $delay overrides the job's own backoff schedule when given; otherwise release() computes the delay from $job->getBackoffDelay().
reserve()  : AbstractJob|null
Atomically claim the next eligible job and lease it. Returns null if nothing is eligible (no pending jobs due, or all reserved jobs have a live lease).
retryDeadJob()  : AdapterInterface
Move a dead-letter job back to pending
setPriority()  : AdapterInterface

Methods

count()

Count of pending + reserved jobs

public count() : int
Return values
int

getDeadJob()

public getDeadJob(string $jobId[, bool $unserialize = true ]) : mixed
Parameters
$jobId : string
$unserialize : bool = true

getDeadJobs()

public getDeadJobs([bool $unserialize = true ]) : array<string|int, mixed>
Parameters
$unserialize : bool = true
Return values
array<string|int, mixed>

hasJobs()

Whether there are pending or reserved jobs

public hasJobs() : bool
Return values
bool

reserve()

Atomically claim the next eligible job and lease it. Returns null if nothing is eligible (no pending jobs due, or all reserved jobs have a live lease).

public reserve() : AbstractJob|null
Return values
AbstractJob|null

        
On this page

Search results