PHP Class Jenner\SimpleFork\Queue\PipeQueue

Inheritance: implements Jenner\SimpleFork\Queue\QueueInterface
Datei anzeigen Open project: huyanping/simple-fork-php

Protected Properties

Property Type Description
$block boolean
$pipe Pipe

Public Methods

Method 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 method

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

get() public method

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

put() public method

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

remove() public method

remove the queue resource
public remove ( ) : boolean
return boolean

Property Details

$block protected_oe property

protected bool $block
return boolean

$pipe protected_oe property

protected Pipe,Jenner\SimpleFork\Queue $pipe
return Pipe