Jenner\SimpleFork\Queue\SystemVMessageQueue::__construct PHP Method

__construct() public method

public __construct ( string $ipc_filename = __FILE__, integer $channel = 1, boolean $serialize_needed = true, boolean $block_send = true, integer $option_receive = MSG_IPC_NOWAIT, integer $maxsize = 100000 )
$ipc_filename string ipc file to make ipc key. if it does not exists, it will try to create the file.
$channel integer message type
$serialize_needed boolean serialize or not
$block_send boolean if block when the queue is full
$option_receive integer if the value is MSG_IPC_NOWAIT it will not going to wait a message coming. if the value is null, it will block and wait a message
$maxsize integer the max size of queue
    public function __construct($ipc_filename = __FILE__, $channel = 1, $serialize_needed = true, $block_send = true, $option_receive = MSG_IPC_NOWAIT, $maxsize = 100000)
    {
        $this->ipc_filename = $ipc_filename;
        $this->msg_type = $channel;
        $this->serialize_needed = $serialize_needed;
        $this->block_send = $block_send;
        $this->option_receive = $option_receive;
        $this->maxsize = $maxsize;
        $this->initQueue($ipc_filename, $channel);
    }