The Stomp class
(PECL stomp >= 0.1.0)
Introduction
Represents a connection between PHP and a Stomp compliant Message Broker.
Class synopsis
string
$broker
= ini_get("stomp.default_broker_uri"),string
$username
= ?,string
$password
= ?,array
$headers
= ?)
$link
, string $transaction_id
, array $headers
= ?): bool$link
, string $transaction_id
, array $headers
= ?): bool$link
, string $transaction_id
, array $headers
= ?): boolstring
$broker
= ini_get("stomp.default_broker_uri"),string
$username
= ?,string
$password
= ?,array
$headers
= ?): resource
$link
): bool$link
): string$link
): array$link
): string|false$link
): bool$link
): array$link
, int $seconds
, int $microseconds
= ?): void$link
, string $destination
, array $headers
= ?): bool$link
, string $destination
, array $headers
= ?): boolTable of Contents
- 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 — Opens a connection
- 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