diff options
| author | Benedict Wong <benedictwong@google.com> | 2021-04-21 17:06:45 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-04-21 17:06:45 +0000 |
| commit | 9ef01fca2a66ca0e49efec7e1978ff138c53b700 (patch) | |
| tree | aed72f3b1f8f6ab3e2543d6d6fd773e26e063b3a /core/java/android | |
| parent | 1c09bf0d6707e7201e930b490df759f79c1387cb (diff) | |
| parent | 85d294282c04a621e8f3b40aad708e8dbb6b363f (diff) | |
Merge "Rename get/setRetryInterval to get/setRetryIntervalsMs"
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/net/vcn/VcnGatewayConnectionConfig.java | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/core/java/android/net/vcn/VcnGatewayConnectionConfig.java b/core/java/android/net/vcn/VcnGatewayConnectionConfig.java index 75db3820f5e7..649e75e61268 100644 --- a/core/java/android/net/vcn/VcnGatewayConnectionConfig.java +++ b/core/java/android/net/vcn/VcnGatewayConnectionConfig.java @@ -134,7 +134,7 @@ public final class VcnGatewayConnectionConfig { * <p>To ensure the device is not constantly being woken up, this retry interval MUST be greater * than this value. * - * @see {@link Builder#setRetryInterval()} + * @see {@link Builder#setRetryIntervalsMs()} */ private static final long MINIMUM_REPEATING_RETRY_INTERVAL_MS = TimeUnit.MINUTES.toMillis(15); @@ -333,25 +333,11 @@ public final class VcnGatewayConnectionConfig { /** * Retrieves the configured retry intervals. * - * @see Builder#setRetryInterval(long[]) + * @see Builder#setRetryIntervalsMs(long[]) */ @NonNull - public long[] getRetryInterval() { - return Arrays.copyOf(mRetryIntervalsMs, mRetryIntervalsMs.length); - } - - /** - * Retrieves the configured retry intervals. - * - * <p>Left to prevent the need to make major changes while changes are actively in flight. - * - * @deprecated use getRetryInterval() instead - * @hide - */ - @Deprecated - @NonNull public long[] getRetryIntervalsMs() { - return getRetryInterval(); + return Arrays.copyOf(mRetryIntervalsMs, mRetryIntervalsMs.length); } /** @@ -559,7 +545,7 @@ public final class VcnGatewayConnectionConfig { * @see VcnManager for additional discussion on fail-safe mode */ @NonNull - public Builder setRetryInterval(@NonNull long[] retryIntervalsMs) { + public Builder setRetryIntervalsMs(@NonNull long[] retryIntervalsMs) { validateRetryInterval(retryIntervalsMs); mRetryIntervalsMs = retryIntervalsMs; |
