Skip to content

Commit da2b0e5

Browse files
committed
api: add ConnectionListener to the connection_pool
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
1 parent 6dee596 commit da2b0e5

File tree

3 files changed

+452
-78
lines changed

3 files changed

+452
-78
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.
1111
### Added
1212

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

1517
### Changed
1618

0 commit comments

Comments
 (0)