Queue Class

Aurora\Queue Namespace


Properties

adapter

Queue adapter

protected $adapter: \AdapterInterface

Constructor

__construct

Constructor

Parameters

  • Aurora\Queue\Adapter\AdapterInterface $adapter — Queue adapter

Signature

public function __construct(Aurora\Queue\Adapter\AdapterInterface $adapter)

Methods

__construct

Constructor

Parameters

  • Aurora\Queue\Adapter\AdapterInterface $adapter — Queue adapter

Signature

public function __construct(Aurora\Queue\Adapter\AdapterInterface $adapter)

getAdapter

Get queue adapter

Return Value

  • \AdapterInterface

Signature

public function getAdapter(): Aurora\Queue\Adapter\AdapterInterface

add

Add a job to the queue

Parameters

  • string $type — Job type
  • mixed $data — Job data

Return Value

  • string

Signature

public function add(string $type, mixed $data): string

get

Get a pending job to work on it

Return Value

  • \JobInterface

Signature

public function get(): Aurora\Queue\JobInterface

pending

Get pending jobs

Parameters

  • string $type — Job type

Return Value

  • int

Signature

public function pending(string $type = ''): int

reset

Reset failed jobs

Parameters

  • string $type — Job type

Return Value

  • $this

Signature

public function reset(string $type = '')

purge

Purge failed jobs

Parameters

  • string $type — Job type

Return Value

  • $this

Signature

public function purge(string $type = '')

Go to top