mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-10 03:56:17 +00:00
In this commit, we have made several improvements to the AIMDBackoffManager class: * Replaced volatile variables with AtomicReference and AtomicInteger to ensure better thread-safety and atomic operations. * Updated the @Contract annotation to reflect the new thread-safe behavior of the class. * Added parameter validation checks to public methods for better error handling and prevention of incorrect usage. * Improved the code readability and organization by separating sections of the class with blank lines and consistent indentation. * These enhancements make the AIMDBackoffManager class more robust, reliable, and easier to maintain.