added Channel::ready() method
This commit is contained in:
parent
da26b1112e
commit
79fe85cc0b
|
|
@ -124,6 +124,15 @@ public:
|
||||||
return _implementation->resume();
|
return _implementation->resume();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is the channel ready / has it passed the initial handshake?
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
bool ready() const
|
||||||
|
{
|
||||||
|
return _implementation->ready();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is the channel usable / not yet closed?
|
* Is the channel usable / not yet closed?
|
||||||
* @return bool
|
* @return bool
|
||||||
|
|
|
||||||
|
|
@ -260,6 +260,15 @@ public:
|
||||||
return _state == state_connected || _state == state_ready;
|
return _state == state_connected || _state == state_ready;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is the channel ready / has it passed the initial handshake?
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
bool ready() const
|
||||||
|
{
|
||||||
|
return _state == state_ready;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Put channel in a confirm mode (RabbitMQ specific)
|
* Put channel in a confirm mode (RabbitMQ specific)
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue