« Stomp::ack
Stomp::commit »

Stomp::begin

stomp_begin

(PECL stomp >= 0.1.0)

Stomp::begin -- stomp_begin — Starts a transaction

説明

オブジェクト指向型 (method):

public function Stomp::begin(string $transaction_id, array $headers = ?): bool

手続き型:

function stomp_begin(resource $link, string $transaction_id, array $headers = ?): bool

Starts a transaction.

パラメータ

link

手続き型のみ: stomp_connect() が返す stomp リンク ID。

transaction_id

The transaction id.

headers

追加のヘッダ (例: receipt) を含む連想配列。

戻り値

成功した場合に true を、失敗した場合に false を返します。

注意

ヒント

Stomp は本来非同期です。同期通信を実装するには receipt ヘッダを追加します。これを追加すると、サーバーがメッセージを受領するかタイムアウトに達するまではメソッドが何も返さないようになります。

関連キーワード:
transaction   stomp   Stomp   begin   Starts   headers   commit   手続き   link   ヘッダ   receipt   オブジェクト指向   method   resource   connect   連想   成功   abort   ヒント   本来   非同期   同期   通信   実装   サーバー
関連する関数・ページ:
stomp.commit   stomp.abort   stomp.error   class.stomp   ref.stomp   stomp.destruct