make DeadHostState final

This commit is contained in:
javanna 2016-06-10 11:40:35 +02:00 committed by Luca Cavanna
parent 6db90da25e
commit 3d7186c81f
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ import java.util.concurrent.TimeUnit;
* when the host should be retried (based on number of previous failed attempts).
* Class is immutable, a new copy of it should be created each time the state has to be changed.
*/
class DeadHostState {
final class DeadHostState {
private static final long MIN_CONNECTION_TIMEOUT_NANOS = TimeUnit.MINUTES.toNanos(1);
private static final long MAX_CONNECTION_TIMEOUT_NANOS = TimeUnit.MINUTES.toNanos(30);