Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Add some javadoc around the shutdown pooling code (#5885)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolyon-S authored Feb 3, 2022
1 parent b41ae50 commit fd9a0ea
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,11 @@ public void addPool(InetSocketAddress server) {
new CassandraClientPoolingContainer(metricsManager, server, config, currentPoolNumber, poolMetrics));
}

/**
* Removes the pool from the set of current pools. Note that this shuts down all idle connections, but active ones
* remain alive until they are returned to the pool, whereby they are destroyed immediately. Threads waiting on the
* pool will be interrupted.
*/
public void removePool(InetSocketAddress removedServerAddress) {
blacklist.remove(removedServerAddress);
CassandraClientPoolingContainer removedContainer = currentPools.remove(removedServerAddress);
Expand Down

0 comments on commit fd9a0ea

Please sign in to comment.