From 63d292c9dac13ec2c7606a1ac9a8787c8bff1edb Mon Sep 17 00:00:00 2001 From: Jitendra Dhawan Date: Thu, 21 Nov 2024 15:08:47 +0530 Subject: [PATCH] rename variables with refresh duration ms to timeout ms --- .../core/finderhub/ServiceFinderHubBuilder.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ranger-core/src/main/java/io/appform/ranger/core/finderhub/ServiceFinderHubBuilder.java b/ranger-core/src/main/java/io/appform/ranger/core/finderhub/ServiceFinderHubBuilder.java index 456a10ae..94c0263b 100644 --- a/ranger-core/src/main/java/io/appform/ranger/core/finderhub/ServiceFinderHubBuilder.java +++ b/ranger-core/src/main/java/io/appform/ranger/core/finderhub/ServiceFinderHubBuilder.java @@ -40,8 +40,8 @@ public abstract class ServiceFinderHubBuilder> { private final List> extraStartSignalConsumers = new ArrayList<>(); private final List> extraStopSignalConsumers = new ArrayList<>(); private final List> extraRefreshSignals = new ArrayList<>(); - private long serviceRefreshDurationMs = HubConstants.SERVICE_REFRESH_TIMEOUT_MS; - private long hubRefreshDurationMs = HubConstants.HUB_START_TIMEOUT_MS; + private long serviceRefreshTimeoutMs = HubConstants.SERVICE_REFRESH_TIMEOUT_MS; + private long hubStartTimeoutMs = HubConstants.HUB_START_TIMEOUT_MS; private Set excludedServices = new HashSet<>(); public ServiceFinderHubBuilder withServiceDataSource(ServiceDataSource serviceDataSource) { @@ -75,12 +75,12 @@ public ServiceFinderHubBuilder withExtraRefreshSignal(Signal extraRe } public ServiceFinderHubBuilder withServiceRefreshDuration(long serviceRefreshDurationMs) { - this.serviceRefreshDurationMs = serviceRefreshDurationMs; + this.serviceRefreshTimeoutMs = serviceRefreshDurationMs; return this; } public ServiceFinderHubBuilder withHubRefreshDuration(long hubRefreshDurationMs) { - this.hubRefreshDurationMs = hubRefreshDurationMs; + this.hubStartTimeoutMs = hubRefreshDurationMs; return this; } @@ -94,8 +94,8 @@ public ServiceFinderHub build() { Preconditions.checkNotNull(serviceDataSource, "Provide a non-null service data source"); Preconditions.checkNotNull(serviceFinderFactory, "Provide a non-null service finder factory"); - val hub = new ServiceFinderHub<>(serviceDataSource, serviceFinderFactory, - serviceRefreshDurationMs, hubRefreshDurationMs, excludedServices); + val hub = new ServiceFinderHub<>(serviceDataSource, serviceFinderFactory, serviceRefreshTimeoutMs, + hubStartTimeoutMs, excludedServices); final ScheduledSignal refreshSignal = new ScheduledSignal<>("service-hub-refresh-timer", () -> null, Collections.emptyList(),