726944146b
Motivation: I was collecting stats for failed promises with a FixedChannelPool and I was bucketing by stats using cause.getSimpleName(). After #9152 was released, the introduction of the anonymous classes make getSimpleName() return "" causing confusion. Modification: Use named classes in the ChannelPool implementations. I made them private, but I can change that if you think otherwise. Result: The SimpleChannelPool fails the promises with a ChannelPoolFullException. The FixedChannelPool fails the promises with an AcquireTimeoutException. Also AcquireTimeoutException is more specific than just a plain TimeoutException, which is also useful for troubleshooting. If you want different class names, please advise. |
||
---|---|---|
.. | ||
src | ||
pom.xml |