Documentation

Queue extends AbstractQueue
in package

Queue class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

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

version
2.1.0

Table of Contents

Constants

FIFO  = 'FIFO'
Queue priority constants
FILO  = 'FILO'

Properties

$adapter  : AdapterInterface|TaskAdapterInterface
Queue adapter
$name  : string
Queue name

Methods

__construct()  : mixed
Constructor
adapter()  : AdapterInterface|TaskAdapterInterface
Get adapter (alias)
addJob()  : Queue
Add job
addJobs()  : Queue
Add jobs
addTask()  : Queue
Add task (alias)
addTasks()  : Queue
Add tasks
clear()  : Queue
Clear jobs from queue
clearFailed()  : Queue
Clear failed jobs from queue
clearTasks()  : Queue
Clear tasks from queue
create()  : Queue
Create the queue object
getAdapter()  : AdapterInterface|TaskAdapterInterface
Get adapter
getName()  : string
Get name
getPriority()  : string
Get queue priority
hasName()  : bool
Has name
isFifo()  : bool
Is FIFO
isFilo()  : bool
Is FILO
isLifo()  : bool
Is LIFO (alias to FILO)
isLilo()  : bool
Is LILO (alias to FIFO)
run()  : array<string|int, mixed>
Run schedule
setAdapter()  : Queue
Set adapter
setName()  : AbstractQueue
Set name
setPriority()  : Queue
Set queue priority
work()  : AbstractJob|null
Work next job

Constants

FIFO

Queue priority constants

public mixed FIFO = 'FIFO'

FILO

public mixed FILO = 'FILO'

Properties

Methods

addJobs()

Add jobs

public addJobs(array<string|int, mixed> $jobs[, int|null $maxAttempts = null ]) : Queue
Parameters
$jobs : array<string|int, mixed>
$maxAttempts : int|null = null
Return values
Queue

addTask()

Add task (alias)

public addTask(Task $task[, int|null $maxAttempts = null ]) : Queue
Parameters
$task : Task
$maxAttempts : int|null = null
Tags
throws
Exception
Return values
Queue

addTasks()

Add tasks

public addTasks(array<string|int, mixed> $tasks[, int|null $maxAttempts = null ]) : Queue
Parameters
$tasks : array<string|int, mixed>
$maxAttempts : int|null = null
Tags
throws
Exception
Return values
Queue

clearFailed()

Clear failed jobs from queue

public clearFailed() : Queue
Return values
Queue

clearTasks()

Clear tasks from queue

public clearTasks() : Queue
Return values
Queue

getName()

Get name

public getName() : string
Return values
string

getPriority()

Get queue priority

public getPriority() : string
Return values
string

hasName()

Has name

public hasName() : bool
Return values
bool

isFifo()

Is FIFO

public isFifo() : bool
Return values
bool

isFilo()

Is FILO

public isFilo() : bool
Return values
bool

isLifo()

Is LIFO (alias to FILO)

public isLifo() : bool
Return values
bool

isLilo()

Is LILO (alias to FIFO)

public isLilo() : bool
Return values
bool

run()

Run schedule

public run([Application|null $application = null ]) : array<string|int, mixed>
Parameters
$application : Application|null = null
Tags
throws
Exception
Return values
array<string|int, mixed>

setPriority()

Set queue priority

public setPriority([string $priority = 'FIFO' ]) : Queue
Parameters
$priority : string = 'FIFO'
Return values
Queue

        
On this page

Search results