« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 33 for Stomp (0.001 sec.)
Stomp Client | PHP 8.3 10283
Stomp Client はじめに This extension allows php applications to communicate with any Stomp compliant Message Brokers through easy object-oriented and procedural interfaces. » Stomp official site インストール/設定 要件 インストール手順 実行時 ... 設定 リソース型 例 Stomp 関数 stomp_connect_error — Returns a string description of the last connect error stomp_version — Gets the current stomp e ... xtension version Stomp — The Stomp class Stomp::abort — Rolls back a transaction in progress Stomp::ack — Acknowledges consumption of a message S ... tomp::begin — Starts a transaction Stomp::commit — Commits a transaction in progress Stomp::__construct — Opens a connection Stomp::__destruct — Closes stomp conne ...
https://man.mtool.work/php/8.3/book.stomp.html
The Stomp class | PHP 8.3 10283
The Stomp class (PECL stomp >= 0.1.0) はじめに Represents a connection between PHP and a Stomp compliant Message Broker. クラス概要 class Stomp { /* メソッド */ public function __construct ( string $broker = ini_get("stomp.default_broker_ur ... $password = ? , array $headers = ? ) public function abort ( string $transaction_id , array $headers = ? ): bool function stomp_abort ( resource $link , string $transaction_id , array $headers = ? ): bool public function ack ( mixed $msg , array $hea ... ders = ? ): bool function stomp_ack ( resource $link , mixed $msg , array $headers = ? ): bool public function begin ( string $transaction_id , array $hea ... ders = ? ): bool function stomp_begin ( resource $link , string $transaction_id , array $headers = ? ): bool public function commit ( string $transaction_ ...
https://man.mtool.work/php/8.3/class.stomp.html
Stomp::error — Gets the last stomp error | PHP 8.3 9593
Stomp::error stomp_error (PECL stomp >= 0.1.0) Stomp::error -- stomp_error — Gets the last stomp error 説明 オブジェクト指向型 (method): public function Stomp::error (): string 手続き型: function stomp_error ( resource $link ): string Gets ... the last stomp error. パラメータ link 手続き型のみ: stomp_connect() が返す stomp リンク ID。 戻り値 Returns an error string or false if n ... o error occurred. 例 例1 オブジェクト指向型 <?php /* connection */ try { $stomp = new Stomp ( 'tcp://localhost:61613' ); } catch( StompException $e ) { die( 'Connection failed: ' . $e -> getMessage ()); ... } var_dump ( $stomp -> error ()); if (! $stomp -> abort ( 'unknown-transaction' , array( 'receipt' => 'foo' ))) { var_dump ( $stomp -> error ( ...
https://man.mtool.work/php/8.3/stomp.error.html
Stomp::ack — Acknowledges consumption of a message | PHP 8.3 9529
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 ( ... bool Acknowledges consumption of a message from a subscription using client acknowledgment. パラメータ link 手続き型のみ: stomp_connect() が返す stomp リンク ID。 msg The message/messageId to be acknowledged. headers 追加のヘッダ (例: receipt) を含む ... した場合に false を返します。 例 例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 to the queue 'foo' */ $stomp -> send ( $queue , $msg ); /* subscribe to messages from the queue 'foo' */ $stomp -> subscribe ( $queue ); /* read a fram ...
https://man.mtool.work/php/8.3/stomp.ack.html
Stomp::abort — Rolls back a transaction in progress | PHP 8.3 9369
Stomp::abort stomp_abort (PECL stomp >= 0.1.0) Stomp::abort -- stomp_abort — Rolls back a transaction in progress 説明 オブジェクト指向型 (method): public function Stomp::abort ( string $transaction_id , array $headers = ? ): bool 手続き型: ... function stomp_abort ( resource $link , string $transaction_id , array $headers = ? ): bool Rolls back a transaction in progress. パラメー ... タ link 手続き型のみ: stomp_connect() が返す stomp リンク ID。 transaction_id The transaction to abort. headers 追加のヘッダ (例: receipt) を含む連想配 ... 。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 オブジェクト指向型 <?php /* connection */ try { $stomp = new Stomp ( 'tcp://localhost:61613' ); } catch( StompException $e ) { die( 'Connection failed: ' . $e -> getMessage ()); ...
https://man.mtool.work/php/8.3/stomp.abort.html
Stomp::commit — Commits a transaction in progress | PHP 8.3 9369
Stomp::commit stomp_commit (PECL stomp >= 0.1.0) Stomp::commit -- stomp_commit — Commits a transaction in progress 説明 オブジェクト指向型 (method): public function Stomp::commit ( string $transaction_id , array $headers = ? ): bool 手続き型 ... : function stomp_commit ( resource $link , string $transaction_id , array $headers = ? ): bool Commits a transaction in progress. パラメータ ... link 手続き型のみ: stomp_connect() が返す stomp リンク ID。 transaction_id The transaction id. headers 追加のヘッダ (例: receipt) を含む連想配列。 ... 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 オブジェクト指向型 <?php /* connection */ try { $stomp = new Stomp ( 'tcp://localhost:61613' ); } catch( StompException $e ) { die( 'Connection failed: ' . $e -> getMessage ()); ...
https://man.mtool.work/php/8.3/stomp.commit.html
Stomp::getSessionId — Gets the current stomp session ID | PHP 8.3 9337
Stomp::getSessionId stomp_get_session_id (PECL stomp >= 0.1.0) Stomp::getSessionId -- stomp_get_session_id — Gets the current stomp session ID 説明 オブジェクト指向型 (method): public function Stomp::getSessionId (): string | false 手続き型 ... : function stomp_get_session_id ( resource $link ): string | false Gets the current stomp session ID. パラメータ link 手続き型のみ: stomp_c ... onnect() が返す stomp リンク ID。 戻り値 string session id on success失敗した場合に false を返します. 例 例1 オブジェクト指向型 <?php /* connect ... ion */ try { $stomp = new Stomp ( 'tcp://localhost:61613' ); } catch( StompException $e ) { die( 'Connection failed: ' . $e -> getMessage ()); ...
https://man.mtool.work/php/8.3/stomp.getsessionid.html
Stomp::setReadTimeout — Sets read timeout | PHP 8.3 9289
Stomp::setReadTimeout stomp_set_read_timeout (PECL stomp >= 0.3.0) Stomp::setReadTimeout -- stomp_set_read_timeout — Sets read timeout 説明 オブジェクト指向型 (method): public function Stomp::setReadTimeout ( int $seconds , int $microsecond ... s = ? ): void 手続き型: function stomp_set_read_timeout ( resource $link , int $seconds , int $microseconds = ? ): void Sets read timeout. パラメータ link 手続き ... 型のみ: stomp_connect() が返す stomp リンク ID。 seconds The seconds part of the timeout to be set. microseconds The microseconds part o ... f the timeout to be set. 戻り値 値を返しません。 例 例1 オブジェクト指向型 <?php /* connection */ try { $stomp = new Stomp ( 'tcp://localhost:61613' ); } catch( StompException $e ) { die( 'Connection failed: ' . $e -> getMessage ()); ...
https://man.mtool.work/php/8.3/stomp.setreadtimeout.html
Stomp::getReadTimeout — Gets read timeout | PHP 8.3 9224
Stomp::getReadTimeout stomp_get_read_timeout (PECL stomp >= 0.3.0) Stomp::getReadTimeout -- stomp_get_read_timeout — Gets read timeout 説明 オブジェクト指向型 (method): public function Stomp::getReadTimeout (): array 手続き型: function stomp ... p_get_read_timeout ( resource $link ): array Gets read timeout パラメータ link 手続き型のみ: stomp_connect() が返す stomp リンク ID。 戻り値 Returns an array with 2 elements: sec and usec. 例 例1 オブジェクト指向型 <?php ... /* connection */ try { $stomp = new Stomp ( 'tcp://localhost:61613' ); } catch( StompException $e ) { die( 'Connection failed: ' . $e -> getMessage ()); ... } var_dump ( $stomp -> getReadTimeout ()); /* close connection */ unset( $stomp ); ?> 上の例の出力は、 たとえば以下のようになります。 array(2) ...
https://man.mtool.work/php/8.3/stomp.getreadtimeout.html
Stomp::__construct — Opens a connection | PHP 8.3 9208
Stomp::__construct stomp_connect (PECL stomp >= 0.1.0) Stomp::__construct -- stomp_connect — Opens a connection 説明 オブジェクト指向型 (constructor): public function Stomp::__construct ( string $broker = ini_get("stomp.default_broker_uri") ... , string $username = ? , string $password = ? , array $headers = ? ) 手続き型: function stomp_connect ( string $broker = ini_get("stomp.default_broker_uri") , string $username = ? , string $password = ? , array $head ... ers = ? ): resource Opens a connection to a stomp compliant Message Broker. パラメータ broker The broker URI username The username. password The password. headers 追加のヘッ ... トランザクションヘッダを指定し、そのメッセージがトランザクションの一部であることを示します。 変更履歴 バージョン 説明 PECL stomp 1.0.1 The headers parameter was added 例 例1 オブジェクト指向型 <?php /* connection */ try { $stomp = new Stomp ( 'tcp://l ...
https://man.mtool.work/php/8.3/stomp.construct.html
PREV 1 2 3 4 NEXT