« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 24 for message queue (0.005 sec.)
message (576), queue (102)
msg_receive — メッセージキューからメッセージを受信する | PHP 8.3 13797
msg_receive (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) msg_receive — メッセージキューからメッセージを受信する 説明 function msg_receive ( SysvMessageQueue $queue , int $desired_message_type , int &$received_message_type , int $max_message_size , ... mixed &$message , bool $unserialize = true , int $flags = 0 , int &$error_code = null ): bool msg_receive() は、指定した queue から指定した ... desired_message_type の最初のメッセージを受信します。 パラメータ queue メッセージキュー desired_message_type desired_message_type が 0 の場 ... プロセス ID が 設定され、 msg_qnum が 1 減少し、 msg_rtime が現在の時刻に設定されます。 変更履歴 バージョン 説明 8.0.0 引数 queue は、 SysvMessageQueue のインスタンスを期待するようになりました。 これより前のバージョンでは、リソースが期待されていました。 ...
https://man.mtool.work/php/8.3/function.msg-receive.html
例 | PHP 8.3 13774
例 例1 オブジェクト指向型 <?php $queue = '/queue/foo' ; $msg = 'bar' ; /* connection */ try { $stomp = new Stomp ( 'tcp://localhost:61613' ); } catch( StompException $e ) { die( 'Connection failed: ' . $e -> getMessage ()); } /* send a message ... age to the queue 'foo' */ $stomp -> send ( $queue , $msg ); /* subscribe to messages from the queue 'foo' */ $stomp -> subscribe ( $queue ) ... */ unset( $stomp ); ?> 上の例の出力は、 たとえば以下のようになります。 object(StompFrame)#2 (3) { ["command"]=> string(7) "MESSAGE" ["headers"]=> array(5) { ["message-id"]=> string(41) "ID:php.net-55293-1257226743606-4:2:-1:1:1" ["destination"]=> string ... (10) "/queue/foo" ["timestamp"]=> string(13) "1257226805828" ["expires"]=> string(1) "0" ["priority"]=> string(1) "0" } ["body"]=> stri ...
https://man.mtool.work/php/8.3/stomp.examples.html
Stomp::ack — Acknowledges consumption of a message | PHP 8.3 13356
Stomp::ack stomp_ack (PECL stomp >= 0.1.0) Stomp::ack -- stomp_ack — Acknowledges consumption of a message 説明 オブジェクト指向型 (method): public function Stomp::ack ( mixed $msg , array $headers = ? ): bool 手続き型: function stomp_ack ( ... resource $link , mixed $msg , array $headers = ? ): bool Acknowledges consumption of a message from a subscription using client acknowledgment. パラメータ link 手続き型のみ: stomp_connect() が返す stomp リンク ID。 ms ... g The message/messageId to be acknowledged. headers 追加のヘッダ (例: receipt) を含む連想配列。 戻り値 成功した場合に true を、失敗した場 ... 合に false を返します。 例 例1 オブジェクト指向型 <?php $queue = '/queue/foo' ; $msg = 'bar' ; /* connection */ try { $stomp = new Stomp ( 'tcp://localhost:61613' ); } catch( StompExcep ...
https://man.mtool.work/php/8.3/stomp.ack.html
ZMQSocket::recv — Receives a message | PHP 8.3 13004
ZMQSocket::recv (PECL zmq >= 0.5.0) ZMQSocket::recv — Receives a message 説明 public function ZMQSocket::recv ( int $mode = 0 ): string Receive a message from a socket. By default receiving will block until a message is available unless ZMQ ... ::MODE_DONTWAIT flag is used. ZMQ::SOCKOPT_RCVMORE socket option can be used for receiving multi-part messages. See ZMQSocket::setSockOpt() for more information. パラメータ mode Pass mode flags to receive multipart messages or non-b ... locking operation. See ZMQ::MODE_ * constants. 戻り値 Returns the message. If ZMQ::MODE_DONTWAIT is used and the operation would block false shall be returned. エラー / 例外 Throws ZMQSocketExcept ... ion on error. 例 例1 A send/recv example Non-blocking send / receive <?php /* Create new queue object, there needs to be a server at the other end */ $queue = new ZMQSocket (new ZMQContext (), ZMQ :: SOCKET_REQ ); $qu ...
https://man.mtool.work/php/8.3/zmqsocket.recv.html
mqseries_put1 — MQSeries MQPUT1 | PHP 8.3 12830
mqseries_put1 (PECL mqseries >= 0.10.0) mqseries_put1 — MQSeries MQPUT1 説明 function mqseries_put1 ( resource $hconn , resource &$objDesc , resource &$msgDesc , resource &$pmo , string $buffer , resource &$compCode , resource &$reason ): v ... oid The mqseries_put1() (MQPUT1) call puts one message on a queue. The queue need not be open. You can use both the mqseries_put() and mqseries_put1() calls to put messages on a ... queue; which call to use depends on the circumstances. Use the mqseries_put() (MQPUT) call to place multiple messages on the sam ... e queue. Use the mqseries_put1() (MQPUT1) call to put only one message on a queue. This call encapsulates the MQOPEN, MQPUT, and M ...
https://man.mtool.work/php/8.3/function.mqseries-put1.html
mqseries_get — MQSeries MQGET | PHP 8.3 12584
mqseries_get (PECL mqseries >= 0.10.0) mqseries_get — MQSeries MQGET 説明 function mqseries_get ( resource $hConn , resource $hObj , array &$md , array &$gmo , int &$bufferLength , string &$msg , int &$data_length , resource &$compCode , re ... source &$reason ): void The mqseries_get() (MQGET) call retrieves a message from a local queue that has been opened using the mqseries_open() (MQOPEN) call パラメータ hConn Connection handle. This h ... andle represents the connection to the queue manager. hObj Object handle. This handle represents the object to be used. md Message descriptor (MQMD). gmo Get message o ... ptions (MQGMO). bufferLength Expected length of the result buffer msg Buffer holding the message that was retrieved from the object. data_length Actual buffer length compCode Completion code. reason Reason code qualifyi ...
https://man.mtool.work/php/8.3/function.mqseries-get.html
msg_send — メッセージキューにメッセージを送信する | PHP 8.3 11486
msg_send (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) msg_send — メッセージキューにメッセージを送信する 説明 function msg_send ( SysvMessageQueue $queue , int $message_type , string | int | float | bool $message , bool $serialize = true , bool $bl ... ocking = true , int &$error_code = null ): bool msg_send() は、 queue で指定したメッセージキューに対して message_type で指定した型 (0 より大きい数値である必要があります) のメッセージ message を ... 送信します。 パラメータ queue メッセージキュー message_type メッセージのタイプ (0より大きい数値でなければいけません) message メッセージの本体 注意 : ser ... bool のいずれかでなければなりません。 それら以外の場合、警告が発生します。 serialize オプションのパラメータ serialize は、 message を送信する方法を制御します。 serialize のデフォルト値は true で、 この場合 message が送信される前に セッションモジュールと ...
https://man.mtool.work/php/8.3/function.msg-send.html
The Swoole\Process class | PHP 8.3 11042
The Swoole\Process class (PECL swoole >= 1.9.0) はじめに クラス概要 class Swoole\Process { /* 定数 */ const int IPC_NOWAIT = 256 ; /* メソッド */ public static function alarm ( int $interval_usec ): void public function close (): void publi ... ( string $exec_file , string $args ): ReturnType public function exit ( string $exit_code = ? ): void public function freeQueue (): void public static function kill ( int $pid , int $signal_no = ? ): bool public function name ( string $process_name ) ... static function signal ( string $signal_no , callable $callback ): void public function start (): void public function statQueue (): array public function useQueue ( int $key , int $mode = ? ): bool public static function wait ( bool $blocking = ? ): ... ::exec — Execute system commands. Swoole\Process::exit — Stop the child processes. Swoole\Process::freeQueue — Destroy the message queue created by swoole_process::useQueue. Swoole\Process::kill — Send signal to the child process. Swoole\Process::name — ...
https://man.mtool.work/php/8.3/class.swoole-process.html
Stomp::readFrame — Reads the next frame | PHP 8.3 10828
Stomp::readFrame stomp_read_frame (PECL stomp >= 0.1.0) Stomp::readFrame -- stomp_read_frame — Reads the next frame 説明 オブジェクト指向型 (method): public function Stomp::readFrame ( string $class_name = "stompFrame" ): stompframe 手続き型 ... try { $stomp = new Stomp ( 'tcp://localhost:61613' ); } catch( StompException $e ) { die( 'Connection failed: ' . $e -> getMessage ()); } /* subscribe to messages from the queue 'foo' */ $stomp -> subscribe ( '/queue/foo' ); /* read a frame */ var_dump ... */ unset( $stomp ); ?> 上の例の出力は、 たとえば以下のようになります。 object(StompFrame)#2 (3) { ["command"]=> string(7) "MESSAGE" ["headers"]=> array(5) { ["message-id"]=> string(41) "ID:php.net-55293-1257226743606-4:2:-1:1:1" ["destination"]=> string ... (10) "/queue/foo" ["timestamp"]=> string(13) "1257226805828" ["expires"]=> string(1) "0" ["priority"]=> string(1) "0" } ["body"]=> stri ...
https://man.mtool.work/php/8.3/stomp.readframe.html
Swoole\Process::statQueue — Get the stats of the message queue used as the comm... 10409
Swoole\Process::statQueue (PECL swoole >= 1.9.0) Swoole\Process::statQueue — Get the stats of the message queue used as the communication method between processes. 説明 public function Swoole\Process::statQueue (): array パラメータ この関数 ... にはパラメータはありません。 戻り値 The array of status of the message queue. 他のマニュアルの関連ページ Python queue Linux JM msgctl(2) Linux JM msgget(2) DuckDB Concurrency Linux JM msgrcv(2) ...
https://man.mtool.work/php/8.3/swoole-process.statqueue.html
PREV 1 2 3 NEXT