PHP Класс MGDigital\BusQue\BusQue

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

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

Метод Описание
__construct ( Implementation $implementation )
deleteQueue ( string $queueName )
generateCommandId ( $command ) : string
getCommand ( string $queueName, string $id )
getQueueName ( $command ) : string
getQueuedCount ( string $queueName ) : integer
isIdInProgress ( string $queueName, string $id ) : boolean
isIdQueued ( string $queueName, string $id ) : boolean
listInProgressIds ( string $queueName ) : array
listQueuedIds ( string $queueName, integer $offset, integer $limit = 10 ) : array
listQueues ( ) : array
purgeCommand ( string $queueName, string $commandId )
queueCommand ( $command, string $commandId = null )
scheduleCommand ( $command, DateTimeInterface $dateTime, string $commandId = null )
serializeCommand ( $command ) : string
unserializeCommand ( string $serialized )
workQueue ( string $queueName, integer $n = null, integer $time = null )
workSchedule ( integer $n = null, integer $time = null )

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

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

public __construct ( Implementation $implementation )
$implementation Implementation

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

public deleteQueue ( string $queueName )
$queueName string

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

public generateCommandId ( $command ) : string
Результат string

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

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

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

public getQueueName ( $command ) : string
Результат string

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

public getQueuedCount ( string $queueName ) : integer
$queueName string
Результат integer

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

public isIdInProgress ( string $queueName, string $id ) : boolean
$queueName string
$id string
Результат boolean

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

public isIdQueued ( string $queueName, string $id ) : boolean
$queueName string
$id string
Результат boolean

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

public listInProgressIds ( string $queueName ) : array
$queueName string
Результат array

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

public listQueuedIds ( string $queueName, integer $offset, integer $limit = 10 ) : array
$queueName string
$offset integer
$limit integer
Результат array

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

public listQueues ( ) : array
Результат array

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

public purgeCommand ( string $queueName, string $commandId )
$queueName string
$commandId string

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

public queueCommand ( $command, string $commandId = null )
$commandId string

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

public scheduleCommand ( $command, DateTimeInterface $dateTime, string $commandId = null )
$dateTime DateTimeInterface
$commandId string

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

public serializeCommand ( $command ) : string
Результат string

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

public unserializeCommand ( string $serialized )
$serialized string

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

public workQueue ( string $queueName, integer $n = null, integer $time = null )
$queueName string
$n integer
$time integer

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

public workSchedule ( integer $n = null, integer $time = null )
$n integer
$time integer