PHP 클래스 Jenner\SimpleFork\Queue\PipeQueue

상속: implements Jenner\SimpleFork\Queue\QueueInterface
파일 보기 프로젝트 열기: huyanping/simple-fork-php

보호된 프로퍼티들

프로퍼티 타입 설명
$block boolean
$pipe Pipe

공개 메소드들

메소드 설명
__construct ( string $filename = '/tmp/simple-fork.pipe', integer $mode = 438 )
get ( boolean $block = false ) : boolean | string get value from the queue of channel
put ( $value ) : boolean put value into the queue of channel
remove ( ) : boolean remove the queue resource

메소드 상세

__construct() 공개 메소드

public __construct ( string $filename = '/tmp/simple-fork.pipe', integer $mode = 438 )
$filename string fifo filename
$mode integer

get() 공개 메소드

get value from the queue of channel
public get ( boolean $block = false ) : boolean | string
$block boolean if block when the queue is empty
리턴 boolean | string

put() 공개 메소드

put value into the queue of channel
public put ( $value ) : boolean
$value
리턴 boolean

remove() 공개 메소드

remove the queue resource
public remove ( ) : boolean
리턴 boolean

프로퍼티 상세

$block 보호되어 있는 프로퍼티

protected bool $block
리턴 boolean

$pipe 보호되어 있는 프로퍼티

protected Pipe,Jenner\SimpleFork\Queue $pipe
리턴 Pipe