mbroadst / qamqp

AMQP 0.9.1 implementation for Qt
Other
151 stars 127 forks source link

"x-expires" argument for queue's #52

Closed KonstantinZvyagin closed 7 years ago

KonstantinZvyagin commented 7 years ago

How can I set "x-expires" argument with timeout to queue?

mbroadst commented 7 years ago

@KonstantinZvyagin I think you're looking for something like this: https://github.com/mbroadst/qamqp/issues/30#issuecomment-179233014

You have to create a QAmqpTable table, set the value of x-expires and then pass that to the queue's declare method.

KonstantinZvyagin commented 7 years ago

Could you please post here a small example ? I didn't get how to use QAmqpTable

mbroadst commented 7 years ago

I posted a link to the example:

QAmqpTable optionTable;
optionTable.insert("x-max-length", 1);
queue_->declare(option, optionTable);
KonstantinZvyagin commented 7 years ago

I get it , it's QVariantHash ! sorry for may stupid question ))

mbroadst commented 7 years ago

no problem :)

KonstantinZvyagin commented 7 years ago

I have a small improvemet for you code. Here is You lib with my chages. It's about new error HeartbeatMissed. Could you merge it to you code?

2016-09-22 16:03 GMT+03:00 Matt Broadstone notifications@github.com:

@KonstantinZvyagin https://github.com/KonstantinZvyagin I think you're looking for something like this: #30 (comment) https://github.com/mbroadst/qamqp/issues/30#issuecomment-179233014

You have to create a QAmqpTable table, set the value of x-expires and then pass that to the queue's declare method.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mbroadst/qamqp/issues/52#issuecomment-248897270, or mute the thread https://github.com/notifications/unsubscribe-auth/AMdQgh2_20Gk4jqe_vSWvDYfZWMMKUCZks5qsnyPgaJpZM4KD2uD .

С уважением Звягин К.Н.

KonstantinZvyagin commented 7 years ago

It was old revision of you code (

2016-09-22 16:24 GMT+03:00 Константин Звягин 4250046@gmail.com:

I have a small improvemet for you code. Here is You lib with my chages. It's about new error HeartbeatMissed. Could you merge it to you code?

2016-09-22 16:03 GMT+03:00 Matt Broadstone notifications@github.com:

@KonstantinZvyagin https://github.com/KonstantinZvyagin I think you're looking for something like this: #30 (comment) https://github.com/mbroadst/qamqp/issues/30#issuecomment-179233014

You have to create a QAmqpTable table, set the value of x-expires and then pass that to the queue's declare method.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mbroadst/qamqp/issues/52#issuecomment-248897270, or mute the thread https://github.com/notifications/unsubscribe-auth/AMdQgh2_20Gk4jqe_vSWvDYfZWMMKUCZks5qsnyPgaJpZM4KD2uD .

С уважением Звягин К.Н.

С уважением Звягин К.Н.

mbroadst commented 7 years ago

@KonstantinZvyagin if you have an improvement please fork the project, and submit a pull request

KonstantinZvyagin commented 7 years ago

Ok !

2016-09-22 16:28 GMT+03:00 Matt Broadstone notifications@github.com:

@KonstantinZvyagin https://github.com/KonstantinZvyagin if you have an improvement please fork the project, and submit a pull request

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mbroadst/qamqp/issues/52#issuecomment-248903294, or mute the thread https://github.com/notifications/unsubscribe-auth/AMdQghouZKB1NwDy9IZvtyzKY__dxad3ks5qsoKNgaJpZM4KD2uD .

С уважением Звягин К.Н.