added upgrade instructions
This commit is contained in:
parent
72b2a52f68
commit
a47034e141
26
README.md
26
README.md
|
|
@ -4,6 +4,8 @@ AMQP-CPP
|
||||||
[](https://travis-ci.org/CopernicaMarketingSoftware/AMQP-CPP)
|
[](https://travis-ci.org/CopernicaMarketingSoftware/AMQP-CPP)
|
||||||
[](https://ci.appveyor.com/project/mvdwerve/amqp-cpp/branch/master)
|
[](https://ci.appveyor.com/project/mvdwerve/amqp-cpp/branch/master)
|
||||||
|
|
||||||
|
**[Are you upgrading from AMQP-CPP 3.* to AMQP-CPP 4](#upgrading)**
|
||||||
|
|
||||||
AMQP-CPP is a C++ library for communicating with a RabbitMQ message broker. The
|
AMQP-CPP is a C++ library for communicating with a RabbitMQ message broker. The
|
||||||
library can be used to parse incoming data from a RabbitMQ server, and to
|
library can be used to parse incoming data from a RabbitMQ server, and to
|
||||||
generate frames that can be sent to a RabbitMQ server.
|
generate frames that can be sent to a RabbitMQ server.
|
||||||
|
|
@ -1225,6 +1227,30 @@ limit, and only sends additional messages when an earlier message gets acknowled
|
||||||
To change the QOS, you can simple call Channel::setQos().
|
To change the QOS, you can simple call Channel::setQos().
|
||||||
|
|
||||||
|
|
||||||
|
UPGRADING
|
||||||
|
=========
|
||||||
|
|
||||||
|
AMQP-CPP 4.* is not always compatible with previous versions. Especially some
|
||||||
|
virtual methods in the ConnectionHandler and TcpHandler classes have been renamed
|
||||||
|
or are called during a different stage in the connection lifetime. Check
|
||||||
|
out this README file and the comments inside the connectionhandler.h and
|
||||||
|
tcphandler.h files to find out if your application has to be changed. You
|
||||||
|
should especially check the following:
|
||||||
|
|
||||||
|
- ConnectionHandler::onConnected has been renamed to ConnectionHandler::onReady
|
||||||
|
- TcpHandler::onConnected is now called sooner: when the TCP connection is
|
||||||
|
established, instead of when the AMQP connection is ready for instructions.
|
||||||
|
- The new method TcpHandler::onReady is called when the AMQP connection is
|
||||||
|
ready to be used (this is the old behavior of TcpHandler::onConnected)
|
||||||
|
- TcpHandler::onError is no longer the last method that is called (TcpHandler::onLost
|
||||||
|
could be called and TcpHandler::onDetached will be called after the error too)
|
||||||
|
- TcpHandler::onClosed is now called to indicate the graceful end of the
|
||||||
|
AMQP protocol, and not the end of TCP connection.
|
||||||
|
- TcpHandler::onLost is called when the TCP connection is lost or closed.
|
||||||
|
- The new method TcpHandler::onDetached is a better alternative for cleanup
|
||||||
|
code instead of TcpHandler::onClosed and/or TcpHandler::onError.
|
||||||
|
|
||||||
|
|
||||||
WORK IN PROGRESS
|
WORK IN PROGRESS
|
||||||
================
|
================
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue