Commit Graph

253 Commits

Author SHA1 Message Date
JesseQu 2db9be9b92 查看整个队列的描写--POC 2025-07-31 17:17:40 +08:00
hensels d912bddfce refactor: a new line was missing 2023-05-08 12:15:54 +02:00
hensels 6cc6bbcdfa chore: update class interfaces to support Qt5 and Qt6 while dropping support for Qt4
all tests checked against RabbitMQ 3.11.13 with Erlang 25.3 with following kits:
Qt 5.6.3 32Bit MSVC2017
Qt 5.15.2 32Bit Clang 15.0.1
Qt 5.15.2 32,64Bit MSVC2019
Qt 5.15.2 32Bit MSVC2022
Qt 6.5.0 64Bit MinGW 11.2.0
Qt 6.5.0 64Bit MSVC2019
Qt 6.5.0 64Bit MSVC2022
2023-05-08 12:07:45 +02:00
Igor Sysoev b5c660a1ac Fix rejecting of message 2017-07-14 07:50:39 -04:00
Ernesto De Stefano ff81962201 Added emission of heartbeat signal. 2017-02-16 10:28:36 -05:00
Ernesto De Stefano f63b294e79 Added heartbeat signal 2017-02-16 10:28:36 -05:00
Ernesto De Stefano 737349ab40 waitForBytesWritten optionally
waitForBytesWritten is not execute when writeTimeout is less than -1.
2017-02-16 10:27:34 -05:00
Ernesto De Stefano a0bc160ea1 Update qamqpframe.cpp
I have a problem with method waitForBytesWritten.
Sometimes my application is locked when is called this method (timeout expired).
Although I try to modify writeTimeout (i.e. -1; 5 or 30), when timeout expires, rabbitMQ server disconnects me.

But if I try to delete it, it works!
My question is:
Why is this method necessary? What is its purpose?

Thank you!
2017-02-16 10:27:34 -05:00
Ernesto De Stefano d20aa2c89d Update .gitignore 2017-01-20 10:08:40 -05:00
Ernesto De Stefano 6d2a7da3a2 Create .gitignore 2017-01-20 10:08:40 -05:00
Denis Kormalev f6c320badb forceDisconnectFromHost renamed to abort 2017-01-12 09:44:51 -05:00
Denis Kormalev 2f52bf5a5f Reconnect fix.
- Adds forceDisconnectFromHost() method to QAmqpClient to immediately disconnect underlying socket;
- Fixes issue when one calls disconnectFromHost while reconnectTimer is alive;
- Properly disconnects underlying socket before another connectToHost call when socket is already connected.
2017-01-12 09:44:51 -05:00
Aleksey Nikolaev 1db89fd1fa The metadata from these moc-files are not used. Also this fixing some bug with qmake export to the VS2015 project 2017-01-12 08:14:45 -05:00
Hxcan Cai 8b86ed6e17 Fix bug: messageCount and consumerCount were not initialized 2016-12-13 07:14:42 -05:00
Hxcan Cai 65f34967eb Add API to query for the messageCount and consumerCount after the queue being declared 2016-12-13 07:14:42 -05:00
Sergey Platonov 175482412f Method reset() added to a QAmqpChannel class
Sometimes user needs to reset the channel state, for example in case of
attempt to declare an exisiting queue.
2016-12-12 08:52:27 -05:00
Matt Broadstone 21c03b2bab Merge pull request #54 from droidsyer/fixedTimeout
Added Fixed timeout and Git version.
2016-10-04 10:11:15 -04:00
De Stefano 8c3dc95dbd Rename getGitVersion() to gitVersion(). 2016-10-04 15:59:14 +02:00
De Stefano 1c205642d1 Fix git tag. 2016-10-03 23:15:50 +02:00
De Stefano 96f2a88020 Fixed git_tag. 2016-10-03 23:12:20 +02:00
De Stefano 275c5dce33 Added GIT_VERSION. 2016-10-03 22:44:49 +02:00
unknown a4d32efefb Added fixed reconnection timeout. 2016-10-03 21:31:46 +02:00
Thomas Vincent-Sweet 2270f0ba95 No need to set message ID to 0 by default. Let exchange handle that if we don't specify. 2016-06-24 12:57:26 +01:00
Thomas Vincent-Sweet fd7537c3f3 Fix queue declaration arguments 2016-06-22 11:16:17 +01:00
Matt Broadstone 3b2a853707 Merge pull request #46 from johnzhanghua/master
timestamp in AMQP-0-9-1 should be seconds other than milliseconds
2016-05-26 08:26:47 -04:00
Aurelien ALBERT 94375662a6 Simplified signature for "headers()" method 2016-05-23 15:52:03 +02:00
Aurelien ALBERT bffc945dca Add message headers getter 2016-05-19 09:07:23 +02:00
John Zhang 3dad5e7661 timestamp in AMQP-0-9-1 should be seconds since 1970-01-01 other than miliseconds 2016-04-29 09:13:54 +10:00
Matt Broadstone aa2b989438 chore(version): bump version to 0.5.0 2016-04-27 10:33:22 -04:00
Matt Broadstone 7d9f80331e fix(QAmqpChannel): needOpen was false if channel was defined
fixes #42
2016-03-28 12:27:35 -04:00
Matt Broadstone 79f5c4187c style(channels): fix some small indentation errors 2016-03-28 09:00:52 -04:00
Matt Broadstone c72e8543f6 fix(debug): missed a few closing parens in debug output 2016-03-28 08:52:51 -04:00
Matt Broadstone 411a3a8e9e fix(build): remove unused variable in qamqpclient.cpp 2016-03-04 14:07:35 -05:00
Matt Broadstone f6c43d9196 refactor(debug): vastly improve debug messages for framing 2016-03-04 12:53:02 -05:00
Ernesto De Stefano d7a59f7ef0 Update src.pro
For build debug and release:
After you include qamqpInterface.pri,
you will link debug and release library depending on the current qmake build configuration.
2016-03-04 10:30:10 +01:00
Juha Kokkonen 9cee142057 QAmqpExchange: Clear unconfirmedDeliveryTags on _q_disconnect(). 2016-03-01 15:20:38 +02:00
Ernesto De Stefano 61ddeb0ad5 Merge pull request #1 from droidsyer/patch-2
Added qamqpInterface.pri
2016-02-29 17:29:12 +01:00
Ernesto De Stefano d9dcf07723 Create qamqpInterface.pri
With this .pri file, you can import this library by setting the variable QAMQP_HOME

You need to put include and lib files into same directory of qamqpInterface.pri.

include($${QAMQP_HOME}/qamqpInterface.pri)
2016-02-29 17:22:51 +01:00
laboratorio 20c9d69875 QAmqpTable arguments derives from channel private. 2016-02-04 16:31:10 +01:00
Ernesto De Stefano 9d567c4aff Update qamqpqueue.h 2016-02-04 14:21:45 +01:00
Ernesto De Stefano cbfa5d4771 Update qamqpqueue.cpp 2016-02-04 14:17:42 +01:00
Ernesto De Stefano cbc2db02e6 Update qamqpqueue_p.h 2016-02-04 14:17:13 +01:00
Ernesto De Stefano 8a86c1350a Update qamqpqueue_p.h 2016-02-04 11:05:28 +01:00
Ernesto De Stefano 39d4b5e086 Update qamqpqueue.h 2016-02-04 10:59:09 +01:00
Ernesto De Stefano b1cd8e48c3 Update qamqpqueue.cpp 2016-02-03 22:59:42 +01:00
Matt Broadstone f6777e66df refactor(channels): move resetInternalState to private impls 2015-11-20 08:07:21 -05:00
Matt Broadstone 3781006a1e fix(QAmqpChannelHash): add missing include 2015-11-19 17:50:05 -05:00
Matt Broadstone a7f9a3a837 chore(version): bump version to 0.4.0 2015-11-19 17:46:23 -05:00
Matt Broadstone 0c96cfca52 refactor(QAmqpChannel): reset channel state on disconnect
We now track channels in QAmqpChannelHash for use across reconnects
however, the internal state of these channels was not being reset
when the connection was reestablished. This provides a way to do
that for not only channels, but both of its subclasses
2015-11-19 17:43:31 -05:00
Matt Broadstone c025333204 fix(QAmqpClient): enable autoReconnect after forced disconnect 2015-11-19 17:09:56 -05:00