PHP 클래스 UrbanIndo\Yii2\Queue\Queues\MultipleQueue

부터: 2015.02.25
저자: Petra Barus ([email protected])
상속: extends UrbanIndo\Yii2\Queue\Queue
파일 보기 프로젝트 열기: urbanindo/yii2-queue

공개 프로퍼티들

프로퍼티 타입 설명
$queues UrbanIndo\Yii2\Queue\Queue[] Stores the queue.
$strategy UrbanIndo\Yii2\Queue\Strategies\Strategy The job fetching strategy.

공개 메소드들

메소드 설명
getQueue ( integer $index ) : Queue | null
getSize ( ) : integer Returns the total number of all queue size.
init ( ) : void Initialize the queue.
postToQueue ( UrbanIndo\Yii2\Queue\Job &$job, integer $index ) : boolean Post new job to a specific queue.
purge ( ) : boolean Purge the whole queue.

보호된 메소드들

메소드 설명
deleteJob ( UrbanIndo\Yii2\Queue\Job $job ) : boolean Delete the job.
fetchJob ( ) : UrbanIndo\Yii2\Queue\Job | boolean Return next job from the queue.
postJob ( UrbanIndo\Yii2\Queue\Job $job ) : boolean Post new job to the queue.
releaseJob ( UrbanIndo\Yii2\Queue\Job $job ) : boolean Release the job.

메소드 상세

deleteJob() 보호된 메소드

Delete the job.
protected deleteJob ( UrbanIndo\Yii2\Queue\Job $job ) : boolean
$job UrbanIndo\Yii2\Queue\Job The job.
리턴 boolean Whether the operation succeed.

fetchJob() 보호된 메소드

Return next job from the queue.
protected fetchJob ( ) : UrbanIndo\Yii2\Queue\Job | boolean
리턴 UrbanIndo\Yii2\Queue\Job | boolean The job fetched or false if not found.

getQueue() 공개 메소드

public getQueue ( integer $index ) : Queue | null
$index integer The index of the queue.
리턴 UrbanIndo\Yii2\Queue\Queue | null the queue or null if not exists.

getSize() 공개 메소드

Returns the total number of all queue size.
public getSize ( ) : integer
리턴 integer

init() 공개 메소드

Initialize the queue.
public init ( ) : void
리턴 void

postJob() 보호된 메소드

Post new job to the queue.
protected postJob ( UrbanIndo\Yii2\Queue\Job $job ) : boolean
$job UrbanIndo\Yii2\Queue\Job The job.
리턴 boolean Whether operation succeed.

postToQueue() 공개 메소드

Post new job to a specific queue.
public postToQueue ( UrbanIndo\Yii2\Queue\Job &$job, integer $index ) : boolean
$job UrbanIndo\Yii2\Queue\Job The job.
$index integer The queue index.
리턴 boolean Whether operation succeed.

purge() 공개 메소드

Purge the whole queue.
public purge ( ) : boolean
리턴 boolean

releaseJob() 보호된 메소드

Release the job.
protected releaseJob ( UrbanIndo\Yii2\Queue\Job $job ) : boolean
$job UrbanIndo\Yii2\Queue\Job The job to release.
리턴 boolean whether the operation succeed.

프로퍼티 상세

$queues 공개적으로 프로퍼티

Stores the queue.
public Queue[],UrbanIndo\Yii2\Queue $queues
리턴 UrbanIndo\Yii2\Queue\Queue[]

$strategy 공개적으로 프로퍼티

The job fetching strategy.
public Strategy,UrbanIndo\Yii2\Queue\Strategies $strategy
리턴 UrbanIndo\Yii2\Queue\Strategies\Strategy