PHP Класс Jenner\SimpleFork\Queue\PipeQueue

Наследование: implements Jenner\SimpleFork\Queue\QueueInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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