You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by he...@apache.org on 2025/08/22 18:26:34 UTC
(pekko) 01/01: chore: Remove two deprecated methods in AbstractScheduler
This is an automated email from the ASF dual-hosted git repository.
hepin pushed a commit to branch removeDep
in repository https://gitbox.apache.org/repos/asf/pekko.git
commit 18cde4217f9c086eb44b22ea848a683fc2dfe8c5
Author: He-Pin <he...@gmail.com>
AuthorDate: Sat Aug 23 02:26:16 2025 +0800
chore: Remove two deprecated methods in AbstractScheduler
---
.../org/apache/pekko/actor/AbstractScheduler.java | 33 ----------------------
1 file changed, 33 deletions(-)
diff --git a/actor/src/main/java/org/apache/pekko/actor/AbstractScheduler.java b/actor/src/main/java/org/apache/pekko/actor/AbstractScheduler.java
index e435587585..305af00116 100644
--- a/actor/src/main/java/org/apache/pekko/actor/AbstractScheduler.java
+++ b/actor/src/main/java/org/apache/pekko/actor/AbstractScheduler.java
@@ -31,39 +31,6 @@ import scala.concurrent.duration.FiniteDuration;
*/
public abstract class AbstractScheduler extends AbstractSchedulerBase {
- // FIXME #26910
-
- /**
- * Schedules a function to be run repeatedly with an initial delay and a frequency. E.g. if you
- * would like the function to be run after 2 seconds and thereafter every 100ms you would set
- * delay = Duration(2, TimeUnit.SECONDS) and interval = Duration(100, TimeUnit.MILLISECONDS)
- */
- @Deprecated
- @Override
- public abstract Cancellable schedule(
- FiniteDuration initialDelay,
- FiniteDuration interval,
- Runnable runnable,
- ExecutionContext executor);
-
- /**
- * Schedules a function to be run repeatedly with an initial delay and a frequency. E.g. if you
- * would like the function to be run after 2 seconds and thereafter every 100ms you would set
- * delay = Duration(2, TimeUnit.SECONDS) and interval = Duration.ofMillis(100)
- */
- @Deprecated
- public Cancellable schedule(
- final java.time.Duration initialDelay,
- final java.time.Duration interval,
- final Runnable runnable,
- final ExecutionContext executor) {
- return schedule(
- JavaDurationConverters.asFiniteDuration(initialDelay),
- JavaDurationConverters.asFiniteDuration(interval),
- runnable,
- executor);
- }
-
/**
* Schedules a Runnable to be run once with a delay, i.e. a time period that has to pass before
* the runnable is executed.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org