Vert.x AMQP Bridge. Facilitates sending and receiving AMQP 1.0 messages.
package |
Default |
---|
__construct()
close( $arg0) : void
callable
create( $arg0, $arg1 = null) : \io\vertx\jphp\amqpbridge\AmqpBridge
param $vertx [Vertx] the vertx instance to use create($vertx)
Creates a Bridge with the given options.
param $vertx [Vertx] the vertx instance to use param $options [AmqpBridgeOptions | array] the options create($vertx, $options)
Vertx
AmqpBridgeOptions | array
\io\vertx\jphp\amqpbridge\AmqpBridge
the (not-yet-started) bridge.
createConsumer( $arg0) : \io\vertx\jphp\amqpbridge\MessageConsumer<T>
This method MUST be called from the bridge Context thread, as used in the result handler callback from the start methods. The bridge MUST be successfully started before the method is called.
string
\io\vertx\jphp\amqpbridge\MessageConsumer
the consumer
createProducer( $arg0) : \io\vertx\jphp\amqpbridge\MessageProducer<T>
This method MUST be called from the bridge Context thread, as used in the result handler callback from the start methods. The bridge MUST be successfully started before the method is called.
string
\io\vertx\jphp\amqpbridge\MessageProducer
the producer
endHandler( $arg0) : void
callable
start( $arg0, $arg1, $arg2, $arg3 = null, $arg4 = null) : void
param $hostname [string] the host name to connect to param $port [integer] the port to connect to param $resultHandler [callable] the result handler start($hostname, $port, $resultHandler)
Starts the bridge, establishing the underlying connection.
param $hostname [string] the host name to connect to param $port [integer] the port to connect to param $username [string] the username param $password [string] the password param $resultHandler [callable] the result handler start($hostname, $port, $username, $password, $resultHandler)
string
integer
callable | string
string
callable