Skip to content

Commit

Permalink
api: add ConnectionObserver to the connection_pool
Browse files Browse the repository at this point in the history
ConnectionObserver provides an observer semantics for components
interested in knowing 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 30, 2022
1 parent 5801dc6 commit be96977
Show file tree
Hide file tree
Showing 3 changed files with 507 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)
- ConnectionObserver interface for knowing changes of connections in
ConnectionPool (#178)

### Changed

Expand Down
Loading

0 comments on commit be96977

Please sign in to comment.