(PECL stomp >= 0.1.0)
Stomp::begin -- stomp_begin — Starts a transaction
オブジェクト指向型 (method):
$transaction_id
[, array $headers
] )手続き型:
$link
, string $transaction_id
[, array $headers
] )Starts a transaction.
link手続き型のみ: stomp_connect() が返す stomp リンク ID。
transaction_idThe transaction id.
headers追加のヘッダ (例: receipt) を含む連想配列。
成功した場合に TRUE を、失敗した場合に FALSE を返します。
Stomp は本来非同期です。同期通信を実装するには receipt ヘッダを追加します。これを追加すると、サーバーがメッセージを受領するかタイムアウトに達するまではメソッドが何も返さないようになります。
See stomp_commit() or stomp_abort().