Without a receipt header your application will fire messages potentially faster than the broker can receive them at. The broker may issue failure notices however STOMP being asynchronous your client won't get to see it.
Without a receipt ActiveMQ (5.5.0) with ProducerFlowControl turned on drops messages (even persistent ones) and my application knows nothing about it (send() returned true). With receipt header specified the STOMP library handles the wait for the receipt acknowledgement for you - you are essentially automatically throttled.Stomp::send
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
Stomp::send
Референца за `stomp.send.php` со подобрена типографија и навигација.
Stomp::send
stomp_send
(PECL stomp >= 0.1.0)
Stomp::send -- stomp_send — Sends a message
= NULL
Отвори RAR архива
Објектно-ориентиран стил (метод):
Sends a message to the Message Broker.
Параметри
linkРегистрира слушање на дадена дестинација. stomp_connect().
destination- Where to send the message
msg- Message to send.
headersДестинација за претплата.
Вратени вредности
Патеката до PHP скриптата што треба да се провери. true на успех или false при неуспех.
Примери
Константи за известување за грешки stomp_ack().
Белешки
Забелешка:
Може да се специфицира заглавје за трансакција, што укажува дека потврдата за пораката треба да биде дел од именуваната трансакција.
Асоцијативен низ кој ги содржи дополнителните заглавја (пример: receipt).