Chuyển đến nội dung
Tài liệu

Tra cứu lớp và hàm

Queue

Danh sách các phương thức công khai của lớp Zittme\Framework\Queue. Tài liệu này được tạo tự động từ mã nguồn lõi Zittme.

Nguồn: common/framework/Queue.php

Phương thức công khai

  • static function addDriver(string $name, Drivers\QueueInterface $driver)
  • Add a custom Queue driver.
  • static function getDriver(string $name)
  • Get a Queue driver instance.
  • static function getDbDriver()
  • Get the DB driver instance, for managing scheduled tasks.
  • static function getSupportedDrivers()
  • Get the list of supported Queue drivers.
  • static function addTask(string $handler, ?object $args = null, ?object $options = null, ?string $priority = null)
  • Add a task to the queue.
  • static function addTaskAt(int $time, string $handler, ?object $args = null, ?object $options = null, ?string $priority = null)
  • Add a task to be executed at a specific time.
  • static function addTaskAtInterval(string $interval, string $handler, ?object $args = null, ?object $options = null)
  • Add a task to be executed at an interval.
  • static function getScheduledTask(int $task_srl)
  • Get information about a scheduled task if it exists.
  • static function cancelScheduledTask(int $task_srl)
  • Cancel a scheduled task.
  • static function checkKey(string $key)
  • Check the process key.
  • static function checkIntervalSyntax(string $interval)
  • Check the interval syntax.
  • static function parseInterval(string $interval, ?int $time)
  • Parse an interval string check it against a timestamp.
  • static function process(int $index, int $count, int $timeout)
  • Process queued and scheduled tasks.
  • static function signalHandler(int $signal, $siginfo)
  • Signal handler.
  • static function signalReceived()
  • Has a signal been received?