Skip to content

Commit

Permalink
Exposed the channels method from the underlying connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Toon Schoenmakers committed Oct 27, 2015
1 parent 6198437 commit 0b357e5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,15 @@ class Connection : private ::AMQP::ConnectionHandler
return _connection.close();
}

/**
* Retrieve the amount of active channels
* @return std::size_t
*/
std::size_t channels() const
{
return _connection.channels();
}

// we are friends with the handler and the channel
friend class ConnectionHandler;
friend class Channel;
Expand Down

0 comments on commit 0b357e5

Please sign in to comment.