Метод | Описание | |
---|---|---|
__construct ( MGDigital\BusQue\Redis\RedisAdapterInterface $adapter, string $namespace = '' ) | ||
awaitCommand ( string $queueName, integer $time = null ) : |
||
cancelScheduledCommand ( string $queueName, string $id ) | ||
clearSchedule ( array $queueNames = null, DateTimeInterface $start = null, DateTimeInterface $end = null ) | ||
completeCommand ( string $queueName, string $id ) | ||
deleteQueue ( string $queueName ) | ||
getConsumingIds ( string $queueName ) : array | ||
getQueueNames ( ) : array | ||
getQueuedCount ( string $queueName ) : integer | ||
getQueuedIds ( string $queueName, integer $offset, integer $limit = 10 ) : array | ||
getScheduledTime ( string $queueName, string $id ) : DateTimeInterface | null | ||
isIdConsuming ( string $queueName, string $id ) : boolean | ||
isIdQueued ( string $queueName, string $id ) : boolean | ||
purgeCommand ( string $queueName, string $id ) | ||
purgeNamespace ( ) | ||
putQueue ( string $queueName ) | ||
queueCommand ( string $queueName, string $commandId, string $serialized ) | ||
readCommand ( string $queueName, string $id ) : string | ||
receiveDueCommands ( DateTimeInterface $now, integer $limit = SchedulerWorker::DEFAULT_THROTTLE, DateTimeInterface $startTime = null ) : array | ||
scheduleCommand ( string $queueName, string $id, string $serialized, DateTimeInterface $dateTime ) |
Метод | Описание | |
---|---|---|
evalScript ( string $script, array $args ) |
public __construct ( MGDigital\BusQue\Redis\RedisAdapterInterface $adapter, string $namespace = '' ) | ||
$adapter | MGDigital\BusQue\Redis\RedisAdapterInterface | |
$namespace | string |
public awaitCommand ( string $queueName, integer $time = null ) : |
||
$queueName | string | |
$time | integer | |
Результат |
public cancelScheduledCommand ( string $queueName, string $id ) | ||
$queueName | string | |
$id | string |
public clearSchedule ( array $queueNames = null, DateTimeInterface $start = null, DateTimeInterface $end = null ) | ||
$queueNames | array | |
$start | DateTimeInterface | |
$end | DateTimeInterface |
public completeCommand ( string $queueName, string $id ) | ||
$queueName | string | |
$id | string |
public getConsumingIds ( string $queueName ) : array | ||
$queueName | string | |
Результат | array |
public getQueuedCount ( string $queueName ) : integer | ||
$queueName | string | |
Результат | integer |
public purgeCommand ( string $queueName, string $id ) | ||
$queueName | string | |
$id | string |
public receiveDueCommands ( DateTimeInterface $now, integer $limit = SchedulerWorker::DEFAULT_THROTTLE, DateTimeInterface $startTime = null ) : array | ||
$now | DateTimeInterface | |
$limit | integer | |
$startTime | DateTimeInterface | |
Результат | array |