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.
This commit is contained in:
parent
21c03b2bab
commit
175482412f
|
|
@ -341,6 +341,12 @@ qint16 QAmqpChannel::prefetchCount() const
|
||||||
return d->prefetchCount;
|
return d->prefetchCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void QAmqpChannel::reset()
|
||||||
|
{
|
||||||
|
Q_D(QAmqpChannel);
|
||||||
|
d->resetInternalState();
|
||||||
|
}
|
||||||
|
|
||||||
QAMQP::Error QAmqpChannel::error() const
|
QAMQP::Error QAmqpChannel::error() const
|
||||||
{
|
{
|
||||||
Q_D(const QAmqpChannel);
|
Q_D(const QAmqpChannel);
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,8 @@ public:
|
||||||
qint32 prefetchSize() const;
|
qint32 prefetchSize() const;
|
||||||
qint16 prefetchCount() const;
|
qint16 prefetchCount() const;
|
||||||
|
|
||||||
|
void reset();
|
||||||
|
|
||||||
// AMQP Basic
|
// AMQP Basic
|
||||||
void qos(qint16 prefetchCount, qint32 prefetchSize = 0);
|
void qos(qint16 prefetchCount, qint32 prefetchSize = 0);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue