PHP Class Jenner\SimpleFork\Queue\PipeQueue

Inheritance: implements Jenner\SimpleFork\Queue\QueueInterface
Afficher le fichier Open project: huyanping/simple-fork-php

Protected Properties

Свойство Type Description
$block boolean
$pipe Pipe

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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

get() public méthode

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

put() public méthode

put value into the queue of channel
public put ( $value ) : boolean
$value
Résultat boolean

remove() public méthode

remove the queue resource
public remove ( ) : boolean
Résultat boolean

Property Details

$block protected_oe property

protected bool $block
Résultat boolean

$pipe protected_oe property

protected Pipe,Jenner\SimpleFork\Queue $pipe
Résultat Pipe