1 package com.atlassian.vcache;
2
3 import com.atlassian.annotations.PublicApi;
4
5 import static java.util.Objects.requireNonNull;
6
7 /**
8 * Settings for configuring a RequestCache.
9 *
10 * @since 1.13.0
11 */
12 @PublicApi
13 public class RequestCacheSettings {
14
15 private final ChangeRate changeRate;
16
17 RequestCacheSettings(ChangeRate changeRate) {
18 this.changeRate = requireNonNull(changeRate);
19 }
20
21 /**
22 * Returns the expected change rate for this cache.
23 *
24 * @return The {@link ChangeRate}.
25 */
26 public ChangeRate getChangeRate() {
27 return changeRate;
28 }
29 }