StudioBonito\SilverStripe\Queue\SyncQueue
Synopsis
class SyncQueue
extends AbstractQueue
implements
QueueInterface
{
- // Inherited members from AbstractQueue
- protected Injector $injector;
- // methods
- public mixed push()
- public mixed pushRaw()
- public mixed later()
- public AbstractJob|null pop()
- protected SyncJob resolveJob()
- // Inherited methods from AbstractQueue
- protected string createPayload()
- protected string setMeta()
- protected int getSeconds()
- public int getTime()
- public void setInjector()
Hierarchy
Extends
Implements
Members
protected
- $injector
—
\Injector
The injector instance.
Methods
protected
- resolveJob() — Resolve a Sync job instance.
public
- 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.
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.