The Stomp class
(PECL stomp >= 0.1.0)
簡介
Represents a connection between PHP and a Stomp compliant Message Broker.
類摘要
class Stomp
{
/* 方法 */
stomp_abort(resource
$link, string $transaction_id, array $headers = ?): boolstomp_begin(resource
$link, string $transaction_id, array $headers = ?): boolstomp_commit(resource
$link, string $transaction_id, array $headers = ?): boolpublic __construct(
string
string
string
array
)
string
$broker = ini_get("stomp.default_broker_uri"),string
$username = ?,string
$password = ?,array
$headers = ?)
stomp_connect(
string
string
string
array
): resource
string
$broker = ini_get("stomp.default_broker_uri"),string
$username = ?,string
$password = ?,array
$headers = ?): resource
stomp_close(resource
$link): boolstomp_error(resource
$link): stringstomp_get_read_timeout(resource
$link): arraystomp_get_session_id(resource
$link): string|falsestomp_has_frame(resource
$link): boolstomp_read_frame(resource
$link): arraystomp_set_read_timeout(resource
$link, int $seconds, int $microseconds = ?): voidstomp_subscribe(resource
$link, string $destination, array $headers = ?): boolstomp_unsubscribe(resource
$link, string $destination, array $headers = ?): boolpublic __destruct()
}目錄
- Stomp::abort — Rolls back a transaction in progress
- Stomp::ack — Acknowledges consumption of a message
- Stomp::begin — Starts a transaction
- Stomp::commit — Commits a transaction in progress
- Stomp::__construct — 打開一個連線
- Stomp::__destruct — Closes stomp connection
- Stomp::error — Gets the last stomp error
- Stomp::getReadTimeout — Gets read timeout
- Stomp::getSessionId — Gets the current stomp session ID
- Stomp::hasFrame — Indicates whether or not there is a frame ready to read
- Stomp::readFrame — Reads the next frame
- Stomp::send — Sends a message
- Stomp::setReadTimeout — Sets read timeout
- Stomp::subscribe — Registers to listen to a given destination
- Stomp::unsubscribe — Removes an existing subscription