From 3c7ab2f78f4db7bfdf44fdeeda976a91f015693f Mon Sep 17 00:00:00 2001 From: Andrei Arlou Date: Thu, 29 Aug 2024 23:44:02 +0300 Subject: [PATCH] 4.x: Replace deprecated method Scheduling.fixedRateBuilder() on Scheduling.fixedRate() (#9098) --- .../java/io/helidon/lra/coordinator/CoordinatorService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lra/coordinator/server/src/main/java/io/helidon/lra/coordinator/CoordinatorService.java b/lra/coordinator/server/src/main/java/io/helidon/lra/coordinator/CoordinatorService.java index 32a2f332b38..bebdf1d0b89 100644 --- a/lra/coordinator/server/src/main/java/io/helidon/lra/coordinator/CoordinatorService.java +++ b/lra/coordinator/server/src/main/java/io/helidon/lra/coordinator/CoordinatorService.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021, 2023 Oracle and/or its affiliates. + * Copyright (c) 2021, 2024 Oracle and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -97,7 +97,7 @@ public class CoordinatorService implements HttpService { private void init() { lraPersistentRegistry.load(this); - recoveryTask = Scheduling.fixedRateBuilder() + recoveryTask = Scheduling.fixedRate() .delay(config.get("recovery-interval").asLong().orElse(200L)) .initialDelay(200) .timeUnit(TimeUnit.MILLISECONDS) @@ -105,7 +105,7 @@ private void init() { .build(); if (config.get("periodical-persist").asBoolean().orElse(false)) { - persistTask = Scheduling.fixedRateBuilder() + persistTask = Scheduling.fixedRate() .delay(config.get("persist-interval").asLong().orElse(5000L)) .initialDelay(200) .timeUnit(TimeUnit.MILLISECONDS)