PHP Интерфейс MGDigital\BusQue\SchedulerDriverInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
cancelScheduledCommand ( string $queueName, string $id )
clearSchedule ( array $queueNames = null, DateTimeInterface $start = null, DateTimeInterface $end = null )
getScheduledTime ( string $queueName, string $id ) : DateTimeInterface | null
receiveDueCommands ( DateTimeInterface $now, integer $limit = SchedulerWorker::DEFAULT_THROTTLE, DateTimeInterface $startTime = null ) : array
scheduleCommand ( string $queueName, string $id, string $serialized, DateTimeInterface $dateTime )

Описание методов

cancelScheduledCommand() публичный Метод

public cancelScheduledCommand ( string $queueName, string $id )
$queueName string
$id string

clearSchedule() публичный Метод

public clearSchedule ( array $queueNames = null, DateTimeInterface $start = null, DateTimeInterface $end = null )
$queueNames array
$start DateTimeInterface
$end DateTimeInterface

getScheduledTime() публичный Метод

public getScheduledTime ( string $queueName, string $id ) : DateTimeInterface | null
$queueName string
$id string
Результат DateTimeInterface | null

receiveDueCommands() публичный Метод

public receiveDueCommands ( DateTimeInterface $now, integer $limit = SchedulerWorker::DEFAULT_THROTTLE, DateTimeInterface $startTime = null ) : array
$now DateTimeInterface
$limit integer The maximum number of scheduled commands to return.
$startTime DateTimeInterface Return due commands since $startTime or the beginning of time.
Результат array

scheduleCommand() публичный Метод

public scheduleCommand ( string $queueName, string $id, string $serialized, DateTimeInterface $dateTime )
$queueName string
$id string
$serialized string
$dateTime DateTimeInterface