Packagecom.kaazing.gateway.amqp.client
Classpublic class AmqpClient
InheritanceAmqpClient Inheritance flash.events.EventDispatcher

AmqpClient provides a socket-based ActionScript client API to communicate with any AMQP 0.9x server, such as Apache QPid.



Public Methods
 MethodDefined by
  
AmqpClient
  
connect(url:String, virtualHost:String, credentials:Object, callback:Function = null):void
Connects to the AMQP Broker at the given URL with given credentials
AmqpClient
  
disconnect():void
Disconnect from the remote AMQP server
AmqpClient
  
getReadyState():Number
AmqpClient
  
openChannel(callback:Function = null):AmqpChannel
Opens an AMQP Channel in the client
AmqpClient
Events
 EventSummaryDefined by
    AmqpClient
    AmqpClient
    AmqpClient
Constructor detail
AmqpClient()constructor
public function AmqpClient()
Method detail
connect()method
public function connect(url:String, virtualHost:String, credentials:Object, callback:Function = null):void

Connects to the AMQP Broker at the given URL with given credentials

Parameters
url:String — url Location of the AMQP Broker or Server
 
virtualHost:String — virtualHost Name of the virtual host
 
credentials:Object — credentials Login credentials or Key
 
callback:Function (default = null) — callback Method to be called on success
disconnect()method 
public function disconnect():void

Disconnect from the remote AMQP server

getReadyState()method 
public function getReadyState():Number

Returns
Number
openChannel()method 
public function openChannel(callback:Function = null):AmqpChannel

Opens an AMQP Channel in the client

Parameters
callback:Function (default = null) — callback Method/function to be called on success

Returns
AmqpChannel
Event detail
closeevent 
Event object type: com.kaazing.gateway.amqp.client.AmqpEvent

errorevent  
Event object type: com.kaazing.gateway.amqp.client.AmqpEvent

openevent  
Event object type: com.kaazing.gateway.amqp.client.AmqpEvent