Skip navigation links

Package io.vertx.proton

= Vert.x Proton This component facilitates AMQP integrations for Vert.x by providing a thin wrapper around the link:http://qpid.apache.org/[Apache Qpid] Proton AMQP 1.0 protocol engine.

See: Description

Package io.vertx.proton Description

= Vert.x Proton This component facilitates AMQP integrations for Vert.x by providing a thin wrapper around the link:http://qpid.apache.org/[Apache Qpid] Proton AMQP 1.0 protocol engine. WARNING: this module has the tech preview status, this means the API can change between versions. It also exposes Proton classes directly because it is not an abstraction layer of an AMQP client, it is rather an integration layer to make Proton integrated with Vert.x and its threading model as well as networking layer. == Using Vert.x Proton To use Vert.x Proton, add the following dependency to the _dependencies_ section of your build descriptor: * Maven (in your `pom.xml`): [source,xml,subs="+attributes"] ---- ${maven.groupId} ${maven.artifactId} ${maven.version} ---- * Gradle (in your `build.gradle` file): [source,groovy,subs="+attributes"] ---- compile ${maven.groupId}:${maven.artifactId}:${maven.version} ---- === Creating a connection Here is an example of connecting and then opening a connection, which can then be used to create senders and receivers. [source,java] ---- examples.VertxProtonExamples#example1 ---- === Creating a sender Here is an example of creating a sender and sending a message with it. The onUpdated handler provided in the send call is invoked when disposition updates are received for the delivery, with the example using this to print the delivery state and whether the delivery was settled. [source,java] ---- examples.VertxProtonExamples#example2 ---- === Creating a receiver Here is an example of creating a receiver, and setting a message handler to process the incoming messages and their related delivery. [source,java] ---- examples.VertxProtonExamples#example3 ----
Skip navigation links

Copyright © 2016. All rights reserved.