Skip to content

Commit

Permalink
api: add ConnectionListener to the connection_pool
Browse files Browse the repository at this point in the history
ConnectionListener provides an observer semantics for components
interested in knowing the role changes of connections in a
ConnectionPool.

We have to take into account that user callbacks can take an
indefinite amount of time. The simplest solution is to process each
connection in a separate goroutine. This should not affect to
performance because most of the time these goroutines are blocked.

Closes #178
  • Loading branch information
oleg-jukovec committed Aug 26, 2022
1 parent 6dee596 commit 77415e3
Show file tree
Hide file tree
Showing 3 changed files with 452 additions and 78 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.
### Added

- Support queue 1.2.0 (#177)
- ConnectionListener interface for knowing the role changes of connections in
ConnectionPool (#178)

### Changed

Expand Down
Loading

0 comments on commit 77415e3

Please sign in to comment.