This is an automated email from the ASF dual-hosted git repository.

hepin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko.git


The following commit(s) were added to refs/heads/main by this push:
     new 57676cdc59 chore: Remove two deprecated methods in AbstractScheduler 
(#2052)
57676cdc59 is described below

commit 57676cdc59a164ca270baa753d99eb821c9da180
Author: He-Pin(kerr) <[email protected]>
AuthorDate: Sat Aug 23 16:43:26 2025 +0800

    chore: Remove two deprecated methods in AbstractScheduler (#2052)
    
    * chore: Remove two deprecated methods in AbstractScheduler
    
    * add newline at end of scheduler.excludes
    
    ---------
    
    Co-authored-by: PJ Fanning <[email protected]>
---
 .../org/apache/pekko/actor/AbstractScheduler.java  | 33 ----------------------
 .../2.0.x.backwards.excludes/scheduler.excludes    | 19 +++++++++++++
 2 files changed, 19 insertions(+), 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.
diff --git 
a/actor/src/main/mima-filters/2.0.x.backwards.excludes/scheduler.excludes 
b/actor/src/main/mima-filters/2.0.x.backwards.excludes/scheduler.excludes
new file mode 100644
index 0000000000..3d3c6cc11d
--- /dev/null
+++ b/actor/src/main/mima-filters/2.0.x.backwards.excludes/scheduler.excludes
@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Remove deprecated method in Scheduler
+ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.pekko.actor.AbstractScheduler.schedule")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to