StudioBonito\SilverStripe\Queue\DbQueue
Synopsis
class DbQueue
extends AbstractQueue
implements
QueueInterface
{
- // members
- protected $default;
- // Inherited members from AbstractQueue
- protected Injector $injector;
- // methods
- public void __construct()
- protected string createPayload()
- public mixed push()
- public mixed pushRaw()
- public mixed later()
- public void release()
- public AbstractJob|null pop()
- public string getQueue()
- // Inherited methods from AbstractQueue
- protected string createPayload()
- protected string setMeta()
- protected int getSeconds()
- public int getTime()
- public void setInjector()
Hierarchy
Extends
Implements
Members
protected
- $default
—
string
The name of the default tube. - $injector
—
\Injector
The injector instance.
Methods
protected
- createPayload() — Create a payload string from the given job and data.
public
- __construct() — Create a new SilverStripe ORM queue instance.
- getQueue() — Get the queue or return the default.
- later() — Push a new job onto the queue after a delay.
- pop() — Pop the next job off of the queue.
- push() — Push a new job onto the queue.
- pushRaw() — Push a raw payload onto the queue.
- release() — Release a reserved job back onto the queue.
Inherited from StudioBonito\SilverStripe\Queue\AbstractQueue
protected
- createPayload() — Create a payload string from the given job and data.
- getSeconds() — Calculate the number of seconds with the given delay.
- setMeta() — Set additional meta on a payload string.
public
- getTime() — Get the current UNIX timestamp.
- setInjector() — Set the injector instance.