The Stomp client interacts with a Stomp server.
category | Zend |
---|---|
package | Zend_Queue |
subpackage | Stomp |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
__construct($scheme= null
, $host= null
, $port= null
, $connectionClass= 'Zend_Queue_Stomp_Client_Connection'
, $frameClass= 'Zend_Queue_Stomp_Frame'
)
__destruct() : void
addConnection(string $scheme, $host, $port, $class = 'Zend_Queue_Stomp_Client_Connection'
) : boolean
Attempts to add this class to the client. Returns a boolean value indicating success of operation.
You cannot add more than 1 connection to the client at this time.
string
['tcp', 'udp']
boolean
canRead() : boolean
boolean
createFrame() : \Zend_Queue_Stomp_FrameInterface
\Zend_Queue_Stomp_FrameInterface
getConnection() : \Zend_Queue_Stomp_Client_ConnectionInterface | null
\Zend_Queue_Stomp_Client_ConnectionInterface
null
receive() : \Zend_Queue_Stomp_FrameInterface | boolean
Returns a frame or false if none were to be read.
\Zend_Queue_Stomp_FrameInterface
boolean
send(\Zend_Queue_Stomp_FrameInterface $frame) : boolean
Returns true if the frame was successfully sent.
\Zend_Queue_Stomp_FrameInterface
boolean
setConnection(\Zend_Queue_Stomp_Client_ConnectionInterface $connection) : void
\Zend_Queue_Stomp_Client_ConnectionInterface
$_connection : array