stomp_version
Stomp::abort
Stomp
PHP Manual
La classe Stomp
Introduction
Représente une connexion entre PHP et un Broker de message compatible Stomp.
Synopsis de la classe
Stomp
{
/* Méthodes */
public
bool
abort
(
string
$transaction_id
[,
array
$headers
] )
public
bool
ack
(
mixed
$msg
[,
array
$headers
] )
public
bool
begin
(
string
$transaction_id
[,
array
$headers
] )
public
bool
commit
(
string
$transaction_id
[,
array
$headers
] )
__construct
([
string
$broker
= ini_get("stomp.default_broker_uri")
[,
string
$username
[,
string
$password
[,
array
$headers
]]]] )
public
bool
__destruct
(
void
)
public
string
error
(
void
)
public
array
getReadTimeout
(
void
)
public
string
getSessionId
(
void
)
public
bool
hasFrame
(
void
)
public
stompframe
readFrame
([
string
$class_name
= "stompFrame"
] )
public
bool
send
(
string
$destination
,
mixed
$msg
[,
array
$headers
] )
public
void
setReadTimeout
(
int
$seconds
[,
int
$microseconds
] )
public
bool
subscribe
(
string
$destination
[,
array
$headers
] )
public
bool
unsubscribe
(
string
$destination
[,
array
$headers
] )
}
Sommaire
Stomp::abort
— Annule une transaction en cours
Stomp::ack
— Valide la réception d'un message
Stomp::begin
— Débute une transaction
Stomp::commit
— Valide une transaction en cours
Stomp::__construct
— Ouvre une connexion
Stomp::__destruct
— Ferme une connection
Stomp::error
— Récupère la dernière erreur stomp
Stomp::getReadTimeout
— Récupère le délai d'expiration de lecture
Stomp::getSessionId
— Retourne l'identifiant de la session courante
Stomp::hasFrame
— Indique si un message est en attente de lecture ou non
Stomp::readFrame
— Lit le prochain message
Stomp::send
— Envoi un message
Stomp::setReadTimeout
— Définit le délai d'expiration de lecture
Stomp::subscribe
— Souscrit à l'écoute d'une destination donnée
Stomp::unsubscribe
— Supprime une souscription existante
stomp_version
Stomp::abort
Stomp
PHP Manual