Refactoring LinearRetryPolicy.java