1 package org.oxerr.viagogo.client.cached.redisson.inventory;
2
3
4
5
6
7
8 public class RetryConfiguration {
9
10 private final int maxAttempts;
11
12 private final int maxDelay;
13
14 public RetryConfiguration() {
15 this(10, 1_000);
16 }
17
18 public RetryConfiguration(int maxAttempts, int maxDelay) {
19 this.maxAttempts = maxAttempts;
20 this.maxDelay = maxDelay;
21 }
22
23 public int getMaxAttempts() {
24 return maxAttempts;
25 }
26
27 public int getMaxDelay() {
28 return maxDelay;
29 }
30
31 }