PHP Class Cronario\Queue

Afficher le fichier Open project: cronario/cronario

Protected Properties

Свойство Type Description
$producer Producer

Méthodes publiques

Méthode Description
buryJob ( $id ) : boolean
clean ( )
deleteJob ( $id ) : boolean
existsJob ( $id ) : boolean
getAppId ( ) : string
getJobCount ( $queue, $state ) : integer | string
getJobReserved ( ) : array
getProducer ( ) : Producer
getQueueInfo ( $queueName ) : array
getQueueNames ( ) : array
getRedis ( ) : Client
getStats ( ) : array Return statistical information about the server, across all clients.
isStop ( $queueName ) : boolean
kickJob ( $id ) : boolean
migrate ( null $queue = null ) : boolean
putJob ( $queue, $id, integer $delay, string $priority = self::PRIORITY_LOW ) : boolean
releaseJob ( $id, integer $delay ) : boolean
reserveJob ( $queue, null $timeout = null ) : null | string
setProducer ( Producer $producer )
start ( $queueName ) : boolean
stop ( $queueName ) : boolean

Méthodes protégées

Méthode Description
buildPayload ( $queueName, $jobState ) : string
getKey ( string $queue, string $state = self::STATE_READY ) : string
getKeyBuried ( $queue ) : string
getKeyDelayed ( $queue ) : string
getKeyReady ( $queue ) : string
getKeyReserved ( $queue ) : string
getPayload ( $id ) : mixed
getQueueNameFromKey ( string $key ) : string
getRedisJobNamespace ( ) : string
getRedisQueueNamespace ( ) : string
getRedisQueueStopNamespace ( ) : string
getTime ( ) : integer
parsePayload ( $rawPayload ) : mixed

Method Details

buildPayload() protected static méthode

protected static buildPayload ( $queueName, $jobState ) : string
$queueName string
$jobState string
Résultat string

buryJob() public méthode

public buryJob ( $id ) : boolean
$id
Résultat boolean

clean() public méthode

public clean ( )

deleteJob() public méthode

public deleteJob ( $id ) : boolean
$id
Résultat boolean

existsJob() public méthode

public existsJob ( $id ) : boolean
$id
Résultat boolean

getAppId() public méthode

public getAppId ( ) : string
Résultat string

getJobCount() public méthode

public getJobCount ( $queue, $state ) : integer | string
$queue
$state
Résultat integer | string

getJobReserved() public méthode

public getJobReserved ( ) : array
Résultat array

getKey() protected méthode

protected getKey ( string $queue, string $state = self::STATE_READY ) : string
$queue string
$state string
Résultat string

getKeyBuried() protected méthode

protected getKeyBuried ( $queue ) : string
$queue
Résultat string

getKeyDelayed() protected méthode

protected getKeyDelayed ( $queue ) : string
$queue
Résultat string

getKeyReady() protected méthode

protected getKeyReady ( $queue ) : string
$queue
Résultat string

getKeyReserved() protected méthode

protected getKeyReserved ( $queue ) : string
$queue
Résultat string

getPayload() protected méthode

protected getPayload ( $id ) : mixed
$id
Résultat mixed

getProducer() public méthode

public getProducer ( ) : Producer
Résultat Producer

getQueueInfo() public méthode

public getQueueInfo ( $queueName ) : array
$queueName
Résultat array

getQueueNameFromKey() protected méthode

protected getQueueNameFromKey ( string $key ) : string
$key string
Résultat string

getQueueNames() public méthode

public getQueueNames ( ) : array
Résultat array

getRedis() public méthode

public getRedis ( ) : Client
Résultat Predis\Client

getRedisJobNamespace() protected méthode

protected getRedisJobNamespace ( ) : string
Résultat string

getRedisQueueNamespace() protected méthode

protected getRedisQueueNamespace ( ) : string
Résultat string

getRedisQueueStopNamespace() protected méthode

protected getRedisQueueStopNamespace ( ) : string
Résultat string

getStats() public méthode

Keys that can be expected to be returned are the following:
public getStats ( ) : array
Résultat array

getTime() protected méthode

protected getTime ( ) : integer
Résultat integer

isStop() public méthode

public isStop ( $queueName ) : boolean
$queueName
Résultat boolean

kickJob() public méthode

public kickJob ( $id ) : boolean
$id
Résultat boolean

migrate() public méthode

public migrate ( null $queue = null ) : boolean
$queue null
Résultat boolean

parsePayload() protected static méthode

protected static parsePayload ( $rawPayload ) : mixed
$rawPayload
Résultat mixed

putJob() public méthode

public putJob ( $queue, $id, integer $delay, string $priority = self::PRIORITY_LOW ) : boolean
$queue
$id
$delay integer
$priority string
Résultat boolean

releaseJob() public méthode

public releaseJob ( $id, integer $delay ) : boolean
$id
$delay integer
Résultat boolean

reserveJob() public méthode

public reserveJob ( $queue, null $timeout = null ) : null | string
$queue
$timeout null
Résultat null | string

setProducer() public méthode

public setProducer ( Producer $producer )
$producer Producer

start() public méthode

public start ( $queueName ) : boolean
$queueName
Résultat boolean

stop() public méthode

public stop ( $queueName ) : boolean
$queueName
Résultat boolean

Property Details

$producer protected_oe property

protected Producer,cronario $producer
Résultat Producer