errorReporter) {
final long timeWindowMillis = timeWindow.toMillis();
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/MergeSortedAsPair.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/MergeSortedAsPair.java
similarity index 94%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/MergeSortedAsPair.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/MergeSortedAsPair.java
index 5b00dfb5a4..f109be5c92 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/MergeSortedAsPair.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/MergeSortedAsPair.java
@@ -10,23 +10,23 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.controlflow;
+package org.eclipse.ditto.internal.utils.pekko.controlflow;
import java.util.Comparator;
import java.util.List;
-import akka.NotUsed;
-import akka.japi.Pair;
-import akka.stream.Attributes;
-import akka.stream.FanInShape2;
-import akka.stream.Graph;
-import akka.stream.Inlet;
-import akka.stream.Outlet;
-import akka.stream.SourceShape;
-import akka.stream.javadsl.GraphDSL;
-import akka.stream.javadsl.Source;
-import akka.stream.stage.GraphStage;
-import akka.stream.stage.GraphStageLogic;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.japi.Pair;
+import org.apache.pekko.stream.Attributes;
+import org.apache.pekko.stream.FanInShape2;
+import org.apache.pekko.stream.Graph;
+import org.apache.pekko.stream.Inlet;
+import org.apache.pekko.stream.Outlet;
+import org.apache.pekko.stream.SourceShape;
+import org.apache.pekko.stream.javadsl.GraphDSL;
+import org.apache.pekko.stream.javadsl.Source;
+import org.apache.pekko.stream.stage.GraphStage;
+import org.apache.pekko.stream.stage.GraphStageLogic;
/**
* Performs a merge on 2 sorted streams but instead of delivering the sort result, delivers the tuple before
@@ -34,7 +34,7 @@
*
* Behavior definition:
*
{@code
- * akka.stream.scaladsl.MergeSorted
+ * org.apache.pekko.stream.scaladsl.MergeSorted
* }
* is behaviorally equivalent as stream component with
* {@code
@@ -173,7 +173,7 @@ public FanInShape2> shape() {
/**
* GraphStageLogic for MergeSortedAsPair.
- * Adapted from {@code akka.stream.scaladsl.MergeSorted}.
+ * Adapted from {@code org.apache.pekko.stream.scaladsl.MergeSorted}.
*/
private final class MergeSortAsPairLogic extends AbstractDittoGraphStageLogic {
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/Pipe.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/Pipe.java
similarity index 90%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/Pipe.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/Pipe.java
index 836b99c681..45758e663f 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/Pipe.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/Pipe.java
@@ -10,20 +10,20 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.controlflow;
+package org.eclipse.ditto.internal.utils.pekko.controlflow;
import java.util.Collection;
-import akka.NotUsed;
-import akka.stream.FanOutShape2;
-import akka.stream.FlowShape;
-import akka.stream.Graph;
-import akka.stream.SinkShape;
-import akka.stream.javadsl.Flow;
-import akka.stream.javadsl.GraphDSL;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.stream.FanOutShape2;
+import org.apache.pekko.stream.FlowShape;
+import org.apache.pekko.stream.Graph;
+import org.apache.pekko.stream.SinkShape;
+import org.apache.pekko.stream.javadsl.Flow;
+import org.apache.pekko.stream.javadsl.GraphDSL;
/**
- * Combinators to join Akka stream processors.
+ * Combinators to join Pekko stream processors.
*/
public final class Pipe {
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/ResumeSource.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/ResumeSource.java
similarity index 93%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/ResumeSource.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/ResumeSource.java
index ae13fa2f27..ff69e34fee 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/ResumeSource.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/ResumeSource.java
@@ -10,12 +10,12 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.controlflow;
+package org.eclipse.ditto.internal.utils.pekko.controlflow;
-import static akka.stream.Attributes.logLevelDebug;
-import static akka.stream.Attributes.logLevelInfo;
-import static akka.stream.Attributes.logLevelWarning;
-import static akka.stream.Attributes.logLevels;
+import static org.apache.pekko.stream.Attributes.logLevelDebug;
+import static org.apache.pekko.stream.Attributes.logLevelInfo;
+import static org.apache.pekko.stream.Attributes.logLevelWarning;
+import static org.apache.pekko.stream.Attributes.logLevels;
import java.time.Duration;
import java.time.Instant;
@@ -26,25 +26,25 @@
import java.util.Optional;
import java.util.function.Function;
-import akka.NotUsed;
-import akka.japi.Pair;
-import akka.japi.pf.PFBuilder;
-import akka.stream.Attributes;
-import akka.stream.FanOutShape2;
-import akka.stream.FlowShape;
-import akka.stream.Graph;
-import akka.stream.Inlet;
-import akka.stream.Outlet;
-import akka.stream.OverflowStrategy;
-import akka.stream.SourceShape;
-import akka.stream.StreamLimitReachedException;
-import akka.stream.javadsl.Flow;
-import akka.stream.javadsl.GraphDSL;
-import akka.stream.javadsl.Source;
-import akka.stream.stage.AbstractInHandler;
-import akka.stream.stage.AbstractOutHandler;
-import akka.stream.stage.GraphStage;
-import akka.stream.stage.GraphStageLogic;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.japi.Pair;
+import org.apache.pekko.japi.pf.PFBuilder;
+import org.apache.pekko.stream.Attributes;
+import org.apache.pekko.stream.FanOutShape2;
+import org.apache.pekko.stream.FlowShape;
+import org.apache.pekko.stream.Graph;
+import org.apache.pekko.stream.Inlet;
+import org.apache.pekko.stream.Outlet;
+import org.apache.pekko.stream.OverflowStrategy;
+import org.apache.pekko.stream.SourceShape;
+import org.apache.pekko.stream.StreamLimitReachedException;
+import org.apache.pekko.stream.javadsl.Flow;
+import org.apache.pekko.stream.javadsl.GraphDSL;
+import org.apache.pekko.stream.javadsl.Source;
+import org.apache.pekko.stream.stage.AbstractInHandler;
+import org.apache.pekko.stream.stage.AbstractOutHandler;
+import org.apache.pekko.stream.stage.GraphStage;
+import org.apache.pekko.stream.stage.GraphStageLogic;
import scala.util.Either;
import scala.util.Left;
import scala.util.Right;
@@ -420,7 +420,7 @@ public String toString() {
* @param type of errors.
*/
private static final class StatefulBackoffFunction
- implements akka.japi.function.Function>> {
+ implements org.apache.pekko.japi.function.Function>> {
private final Duration minBackoff;
private final Duration maxBackoff;
@@ -465,7 +465,7 @@ public Iterable> apply(final E element) {
* @param Type of elements.
*/
private static final class StatefulLookBehindFunction implements
- akka.japi.function.Function, Iterable, E>>> {
+ org.apache.pekko.japi.function.Function, Iterable, E>>> {
private final int lookBehind;
private final ArrayDeque finalElements;
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/ResumeSourceBuilder.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/ResumeSourceBuilder.java
similarity index 97%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/ResumeSourceBuilder.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/ResumeSourceBuilder.java
index 6bee593762..590a4635a8 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/ResumeSourceBuilder.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/ResumeSourceBuilder.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.controlflow;
+package org.eclipse.ditto.internal.utils.pekko.controlflow;
import static org.eclipse.ditto.base.model.common.ConditionChecker.checkNotNull;
@@ -19,8 +19,8 @@
import java.util.Optional;
import java.util.function.Function;
-import akka.NotUsed;
-import akka.stream.javadsl.Source;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.stream.javadsl.Source;
/**
* Builder of the resume source.
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/TimeoutFlow.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/TimeoutFlow.java
similarity index 87%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/TimeoutFlow.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/TimeoutFlow.java
index c12f2ab067..272657b263 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/TimeoutFlow.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/TimeoutFlow.java
@@ -10,21 +10,21 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.controlflow;
+package org.eclipse.ditto.internal.utils.pekko.controlflow;
import static org.eclipse.ditto.base.model.common.ConditionChecker.checkNotNull;
import java.time.Duration;
-import akka.NotUsed;
-import akka.japi.function.Function;
-import akka.stream.FlowShape;
-import akka.stream.SourceShape;
-import akka.stream.UniformFanInShape;
-import akka.stream.javadsl.Flow;
-import akka.stream.javadsl.GraphDSL;
-import akka.stream.javadsl.Merge;
-import akka.stream.javadsl.Source;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.japi.function.Function;
+import org.apache.pekko.stream.FlowShape;
+import org.apache.pekko.stream.SourceShape;
+import org.apache.pekko.stream.UniformFanInShape;
+import org.apache.pekko.stream.javadsl.Flow;
+import org.apache.pekko.stream.javadsl.GraphDSL;
+import org.apache.pekko.stream.javadsl.Merge;
+import org.apache.pekko.stream.javadsl.Source;
/**
* Factory to create flows that emit a timeout element if it took longer than the given timeout to process an input
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/Transistor.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/Transistor.java
similarity index 90%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/Transistor.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/Transistor.java
index 6bf06416ed..5933fba2f9 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/Transistor.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/Transistor.java
@@ -10,20 +10,20 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.controlflow;
+package org.eclipse.ditto.internal.utils.pekko.controlflow;
import java.util.LinkedList;
import java.util.Queue;
-import akka.stream.Attributes;
-import akka.stream.FanInShape2;
-import akka.stream.Inlet;
-import akka.stream.Outlet;
-import akka.stream.stage.AbstractInHandler;
-import akka.stream.stage.AbstractOutHandler;
-import akka.stream.stage.GraphStage;
-import akka.stream.stage.GraphStageLogic;
-import akka.stream.stage.GraphStageLogicWithLogging;
+import org.apache.pekko.stream.Attributes;
+import org.apache.pekko.stream.FanInShape2;
+import org.apache.pekko.stream.Inlet;
+import org.apache.pekko.stream.Outlet;
+import org.apache.pekko.stream.stage.AbstractInHandler;
+import org.apache.pekko.stream.stage.AbstractOutHandler;
+import org.apache.pekko.stream.stage.GraphStage;
+import org.apache.pekko.stream.stage.GraphStageLogic;
+import org.apache.pekko.stream.stage.GraphStageLogicWithLogging;
/**
* Flow of elements regulated by credits arriving at a side channel.
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/WithSender.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/WithSender.java
similarity index 92%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/WithSender.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/WithSender.java
index 548bd66a23..0f344c1019 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/WithSender.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/WithSender.java
@@ -10,11 +10,11 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.controlflow;
+package org.eclipse.ditto.internal.utils.pekko.controlflow;
import org.eclipse.ditto.base.model.headers.WithDittoHeaders;
-import akka.actor.ActorRef;
+import org.apache.pekko.actor.ActorRef;
/**
* A message packed together with sender.
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/package-info.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/package-info.java
similarity index 77%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/package-info.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/package-info.java
index bad03121b3..2f3ef9799a 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/controlflow/package-info.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/controlflow/package-info.java
@@ -12,7 +12,7 @@
*/
/**
- * Encode control flow as data flow through akka streams for modular actor decomposition.
+ * Encode control flow as data flow through pekko streams for modular actor decomposition.
*/
@org.eclipse.ditto.utils.jsr305.annotations.AllParametersAndReturnValuesAreNonnullByDefault
-package org.eclipse.ditto.internal.utils.akka.controlflow;
+package org.eclipse.ditto.internal.utils.pekko.controlflow;
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/AutoCloseableSlf4jLogger.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/AutoCloseableSlf4jLogger.java
similarity index 98%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/AutoCloseableSlf4jLogger.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/AutoCloseableSlf4jLogger.java
index b297137ece..a4ee4c1645 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/AutoCloseableSlf4jLogger.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/AutoCloseableSlf4jLogger.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import javax.annotation.Nullable;
import javax.annotation.concurrent.NotThreadSafe;
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/AutoClosingSlf4jLogger.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/AutoClosingSlf4jLogger.java
similarity index 99%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/AutoClosingSlf4jLogger.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/AutoClosingSlf4jLogger.java
index 065239fd52..f490a67350 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/AutoClosingSlf4jLogger.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/AutoClosingSlf4jLogger.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import static org.eclipse.ditto.base.model.common.ConditionChecker.checkNotNull;
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/AutoDiscardingDiagnosticLoggingAdapter.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/AutoDiscardingDiagnosticLoggingAdapter.java
similarity index 98%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/AutoDiscardingDiagnosticLoggingAdapter.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/AutoDiscardingDiagnosticLoggingAdapter.java
index 1eac151240..02ed959c4e 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/AutoDiscardingDiagnosticLoggingAdapter.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/AutoDiscardingDiagnosticLoggingAdapter.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import static org.eclipse.ditto.base.model.common.ConditionChecker.checkNotNull;
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/CommonMdcEntryKey.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/CommonMdcEntryKey.java
similarity index 95%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/CommonMdcEntryKey.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/CommonMdcEntryKey.java
index 1773c11359..b4597a5924 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/CommonMdcEntryKey.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/CommonMdcEntryKey.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
/**
* An enumeration of commonly known MDC entry keys.
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultAutoCloseableSlf4jLogger.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultAutoCloseableSlf4jLogger.java
similarity index 99%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultAutoCloseableSlf4jLogger.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultAutoCloseableSlf4jLogger.java
index 887864a056..8fd7095605 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultAutoCloseableSlf4jLogger.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultAutoCloseableSlf4jLogger.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import static org.eclipse.ditto.base.model.common.ConditionChecker.argumentNotEmpty;
import static org.eclipse.ditto.base.model.common.ConditionChecker.checkNotNull;
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultDiagnosticLoggingAdapter.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultDiagnosticLoggingAdapter.java
similarity index 98%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultDiagnosticLoggingAdapter.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultDiagnosticLoggingAdapter.java
index ef1d6c8805..45132b969d 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultDiagnosticLoggingAdapter.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultDiagnosticLoggingAdapter.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import static org.eclipse.ditto.base.model.common.ConditionChecker.argumentNotEmpty;
import static org.eclipse.ditto.base.model.common.ConditionChecker.checkNotNull;
@@ -22,7 +22,7 @@
import javax.annotation.Nullable;
import javax.annotation.concurrent.NotThreadSafe;
-import akka.event.DiagnosticLoggingAdapter;
+import org.apache.pekko.event.DiagnosticLoggingAdapter;
/**
* Wraps and delegates to a {@link DiagnosticLoggingAdapter}.
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultDittoDiagnosticLoggingAdapter.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultDittoDiagnosticLoggingAdapter.java
similarity index 98%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultDittoDiagnosticLoggingAdapter.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultDittoDiagnosticLoggingAdapter.java
index 7e9f707e15..d38376690a 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultDittoDiagnosticLoggingAdapter.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultDittoDiagnosticLoggingAdapter.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import static org.eclipse.ditto.base.model.common.ConditionChecker.checkNotNull;
@@ -23,7 +23,7 @@
import org.eclipse.ditto.base.model.headers.DittoHeaders;
import org.eclipse.ditto.base.model.headers.WithDittoHeaders;
-import akka.event.DiagnosticLoggingAdapter;
+import org.apache.pekko.event.DiagnosticLoggingAdapter;
import scala.collection.JavaConverters;
import scala.collection.immutable.Seq;
@@ -49,7 +49,7 @@ private DefaultDittoDiagnosticLoggingAdapter(final AbstractDiagnosticLoggingAdap
/**
* Returns an instance of the default Ditto DiagnosticLoggingAdapter.
*
- * @param diagnosticLoggingAdapter the Akka DiagnosticLoggingAdapter which performs the actual logging.
+ * @param diagnosticLoggingAdapter the Pekko DiagnosticLoggingAdapter which performs the actual logging.
* @param loggerName the name of the returned logger.
* @return the instance.
* @throws NullPointerException if any argument is {@code null}.
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultDittoLogger.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultDittoLogger.java
similarity index 99%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultDittoLogger.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultDittoLogger.java
index 8a6fff494b..86e9461372 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultDittoLogger.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultDittoLogger.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import static org.eclipse.ditto.base.model.common.ConditionChecker.checkNotNull;
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultMdcEntry.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultMdcEntry.java
similarity index 97%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultMdcEntry.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultMdcEntry.java
index 249d0f4193..fdfaf83862 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultMdcEntry.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultMdcEntry.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import static org.eclipse.ditto.base.model.common.ConditionChecker.argumentNotEmpty;
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DittoLogger.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DittoLogger.java
similarity index 99%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DittoLogger.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DittoLogger.java
index ef1f97088b..12ec9a5d23 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DittoLogger.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DittoLogger.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import javax.annotation.Nullable;
import javax.annotation.concurrent.NotThreadSafe;
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DittoLoggerFactory.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DittoLoggerFactory.java
similarity index 91%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DittoLoggerFactory.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DittoLoggerFactory.java
index 15ede4a8ef..89fa58baaf 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/DittoLoggerFactory.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/DittoLoggerFactory.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import static org.eclipse.ditto.base.model.common.ConditionChecker.checkNotNull;
@@ -20,18 +20,18 @@
import org.slf4j.LoggerFactory;
-import akka.actor.Actor;
-import akka.actor.ActorContext;
-import akka.actor.ExtendedActorSystem;
-import akka.actor.Props;
-import akka.event.DiagnosticLoggingAdapter;
-import akka.event.EventStream;
-import akka.event.LogSource;
-import akka.event.Logging;
-import akka.event.LoggingFilter;
+import org.apache.pekko.actor.Actor;
+import org.apache.pekko.actor.ActorContext;
+import org.apache.pekko.actor.ExtendedActorSystem;
+import org.apache.pekko.actor.Props;
+import org.apache.pekko.event.DiagnosticLoggingAdapter;
+import org.apache.pekko.event.EventStream;
+import org.apache.pekko.event.LogSource;
+import org.apache.pekko.event.Logging;
+import org.apache.pekko.event.LoggingFilter;
/**
- * Factory for obtaining instances of {@link DittoLogger} and {@link akka.event.LoggingAdapter}.
+ * Factory for obtaining instances of {@link DittoLogger} and {@link org.apache.pekko.event.LoggingAdapter}.
*/
@Immutable
public final class DittoLoggerFactory {
@@ -128,7 +128,7 @@ private static String getActorClassName(final Actor logSource) {
}
/**
- * Returns a thread-safe {@link akka.event.LoggingAdapter} with MDC support for the given actor.
+ * Returns a thread-safe {@link org.apache.pekko.event.LoggingAdapter} with MDC support for the given actor.
*
* @param actor the Actor used as logSource
* @return the thread-safe logging adapter.
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/ImmutableDittoLogger.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/ImmutableDittoLogger.java
similarity index 99%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/ImmutableDittoLogger.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/ImmutableDittoLogger.java
index 61f99b3a5a..631519a006 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/ImmutableDittoLogger.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/ImmutableDittoLogger.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import static org.eclipse.ditto.base.model.common.ConditionChecker.argumentNotEmpty;
import static org.eclipse.ditto.base.model.common.ConditionChecker.checkNotNull;
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/ImmutableDittoLoggingAdapter.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/ImmutableDittoLoggingAdapter.java
similarity index 98%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/ImmutableDittoLoggingAdapter.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/ImmutableDittoLoggingAdapter.java
index e7862b571e..d68b07fd14 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/ImmutableDittoLoggingAdapter.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/ImmutableDittoLoggingAdapter.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import static org.eclipse.ditto.base.model.common.ConditionChecker.argumentNotEmpty;
import static org.eclipse.ditto.base.model.common.ConditionChecker.checkNotNull;
@@ -25,7 +25,7 @@
import org.eclipse.ditto.base.model.headers.DittoHeaders;
import org.eclipse.ditto.base.model.headers.WithDittoHeaders;
-import akka.event.DiagnosticLoggingAdapter;
+import org.apache.pekko.event.DiagnosticLoggingAdapter;
import scala.collection.immutable.Seq;
/**
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/LoggingFactory.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/LoggingFactory.java
similarity index 94%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/LoggingFactory.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/LoggingFactory.java
index 2ec8be2069..d6162f9d4a 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/LoggingFactory.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/LoggingFactory.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/MdcEntry.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/MdcEntry.java
similarity index 96%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/MdcEntry.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/MdcEntry.java
index 4610897958..64d7e97b0d 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/MdcEntry.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/MdcEntry.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/ThreadSafeDittoLogger.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/ThreadSafeDittoLogger.java
similarity index 98%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/ThreadSafeDittoLogger.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/ThreadSafeDittoLogger.java
index 3915f24534..8bf408288e 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/ThreadSafeDittoLogger.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/ThreadSafeDittoLogger.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import javax.annotation.Nullable;
import javax.annotation.concurrent.ThreadSafe;
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/WithMdcEntry.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/WithMdcEntry.java
similarity index 98%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/WithMdcEntry.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/WithMdcEntry.java
index 37a325e388..74d5b1fb8e 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/WithMdcEntry.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/WithMdcEntry.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import javax.annotation.Nullable;
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/package-info.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/package-info.java
similarity index 89%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/package-info.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/package-info.java
index f1969a5794..86d138b583 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/logging/package-info.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/logging/package-info.java
@@ -11,4 +11,4 @@
* SPDX-License-Identifier: EPL-2.0
*/
@org.eclipse.ditto.utils.jsr305.annotations.AllParametersAndReturnValuesAreNonnullByDefault
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/mailbox/MonitoredUnboundedMailboxType.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/mailbox/MonitoredUnboundedMailboxType.java
similarity index 90%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/mailbox/MonitoredUnboundedMailboxType.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/mailbox/MonitoredUnboundedMailboxType.java
index 43b08d8906..5ba79c395a 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/mailbox/MonitoredUnboundedMailboxType.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/mailbox/MonitoredUnboundedMailboxType.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
- package org.eclipse.ditto.internal.utils.akka.mailbox;
+ package org.eclipse.ditto.internal.utils.pekko.mailbox;
import java.util.Optional;
import java.util.Queue;
@@ -25,23 +25,23 @@
import com.typesafe.config.Config;
- import akka.actor.ActorPath;
- import akka.actor.ActorRef;
- import akka.actor.ActorRefWithCell;
- import akka.actor.ActorSystem;
- import akka.dispatch.Envelope;
- import akka.dispatch.MailboxType;
- import akka.dispatch.MessageQueue;
- import akka.dispatch.ProducesMessageQueue;
- import akka.dispatch.UnboundedMailbox;
- import akka.event.Logging;
- import akka.event.LoggingAdapter;
+ import org.apache.pekko.actor.ActorPath;
+ import org.apache.pekko.actor.ActorRef;
+ import org.apache.pekko.actor.ActorRefWithCell;
+ import org.apache.pekko.actor.ActorSystem;
+ import org.apache.pekko.dispatch.Envelope;
+ import org.apache.pekko.dispatch.MailboxType;
+ import org.apache.pekko.dispatch.MessageQueue;
+ import org.apache.pekko.dispatch.ProducesMessageQueue;
+ import org.apache.pekko.dispatch.UnboundedMailbox;
+ import org.apache.pekko.event.Logging;
+ import org.apache.pekko.event.LoggingAdapter;
import scala.Option;
/**
* MonitoredUnboundedMailboxType is a regular unbounded mailbox, which in addition monitors the size of the
* mailbox/queue.
- * It is backed by a {@link ConcurrentLinkedQueue}, like the default {@link UnboundedMailbox} of Akka. Therefore it can be
+ * It is backed by a {@link ConcurrentLinkedQueue}, like the default {@link UnboundedMailbox} of Pekko. Therefore it can be
* used to replace the default unbounded mailbox.
*
* This mailbox has two additional monitoring features: Logging the size of the mailbox when a given
@@ -64,7 +64,7 @@ public final class MonitoredUnboundedMailboxType
/**
* Creates a new {@code MonitoredUnboundedMailboxType}.
- * This constructor signature must exist, it will be called by Akka.
+ * This constructor signature must exist, it will be called by Pekko.
*
* @param settings the ActorSystem settings.
* @param config the config.
@@ -96,7 +96,7 @@ public MessageQueue create(final Option owner, final Option or system <{}> not available", owner, system);
}
- // Use akka default unbounded mailbox as fallback
+ // Use pekko default unbounded mailbox as fallback
return new UnboundedMailbox.MessageQueue();
}
@@ -120,7 +120,7 @@ private boolean shouldTrackActor(final ActorPath path) {
* A {@code MessageQueue} implementation which keeps track of its size. The size is tracked separately, to avoid
* {@link Queue#size} complexity of O(n). The size will be reported via logging and a gauge metric.
*/
- static final class InstrumentedMessageQueue implements MessageQueue, akka.dispatch.UnboundedMessageQueueSemantics {
+ static final class InstrumentedMessageQueue implements MessageQueue, org.apache.pekko.dispatch.UnboundedMessageQueueSemantics {
private final LoggingAdapter log;
private final ActorPath path;
@@ -144,7 +144,7 @@ static final class InstrumentedMessageQueue implements MessageQueue, akka.dispat
}
/**
- * Uses internal akka API to retrieve the Class of the owner Actor.
+ * Uses internal pekko API to retrieve the Class of the owner Actor.
*
* @param owner actor reference of the owner.
* @return the name of the actor class or empty.
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/package-info.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/package-info.java
similarity index 78%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/package-info.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/package-info.java
index 181997c95b..b80553e058 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/package-info.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/package-info.java
@@ -12,7 +12,7 @@
*/
/**
- * Encode control flow as data flow through akka streams for modular actor decomposition.
+ * Encode control flow as data flow through pekko streams for modular actor decomposition.
*/
@org.eclipse.ditto.utils.jsr305.annotations.AllParametersAndReturnValuesAreNonnullByDefault
-package org.eclipse.ditto.internal.utils.akka;
+package org.eclipse.ditto.internal.utils.pekko;
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/streaming/AbstractStreamingActor.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/streaming/AbstractStreamingActor.java
similarity index 87%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/streaming/AbstractStreamingActor.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/streaming/AbstractStreamingActor.java
index 521fb7f24d..2de4fc8f11 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/streaming/AbstractStreamingActor.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/streaming/AbstractStreamingActor.java
@@ -10,20 +10,20 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.streaming;
+package org.eclipse.ditto.internal.utils.pekko.streaming;
import java.time.Duration;
import java.util.List;
-import akka.NotUsed;
-import akka.actor.AbstractActor;
-import akka.event.DiagnosticLoggingAdapter;
-import akka.event.Logging;
-import akka.japi.pf.ReceiveBuilder;
-import akka.stream.Materializer;
-import akka.stream.SourceRef;
-import akka.stream.javadsl.Source;
-import akka.stream.javadsl.StreamRefs;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.actor.AbstractActor;
+import org.apache.pekko.event.DiagnosticLoggingAdapter;
+import org.apache.pekko.event.Logging;
+import org.apache.pekko.japi.pf.ReceiveBuilder;
+import org.apache.pekko.stream.Materializer;
+import org.apache.pekko.stream.SourceRef;
+import org.apache.pekko.stream.javadsl.Source;
+import org.apache.pekko.stream.javadsl.StreamRefs;
/**
* Abstract actor that responds to each command by streaming elements from a source to the sender of the command.
@@ -36,7 +36,7 @@ public abstract class AbstractStreamingActor extends AbstractActor {
/**
* Logger for this actor.
* Intentionally _NOT_ instantiated with DittoLoggerFactory as this would lead to scala-java compile problems within
- * the "ditto-internal-utils-akka" module:
+ * the "ditto-internal-utils-pekko" module:
*/
protected final DiagnosticLoggingAdapter log = Logging.apply(this);
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/streaming/StreamAck.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/streaming/StreamAck.java
similarity index 99%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/streaming/StreamAck.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/streaming/StreamAck.java
index 5834dd884c..78a53386f4 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/streaming/StreamAck.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/streaming/StreamAck.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.streaming;
+package org.eclipse.ditto.internal.utils.pekko.streaming;
import java.util.Objects;
import java.util.stream.Stream;
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/streaming/StreamConstants.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/streaming/StreamConstants.java
similarity index 94%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/streaming/StreamConstants.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/streaming/StreamConstants.java
index 3d431dbfb3..df08330304 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/streaming/StreamConstants.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/streaming/StreamConstants.java
@@ -10,9 +10,9 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.streaming;
+package org.eclipse.ditto.internal.utils.pekko.streaming;
-import akka.actor.Status;
+import org.apache.pekko.actor.Status;
/**
* Constants used for streaming utils.
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/streaming/StreamTrigger.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/streaming/StreamTrigger.java
similarity index 98%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/streaming/StreamTrigger.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/streaming/StreamTrigger.java
index ff426ef778..f3bc91226e 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/streaming/StreamTrigger.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/streaming/StreamTrigger.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.streaming;
+package org.eclipse.ditto.internal.utils.pekko.streaming;
import java.time.Duration;
import java.time.Instant;
diff --git a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/streaming/TimestampPersistence.java b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/streaming/TimestampPersistence.java
similarity index 88%
rename from internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/streaming/TimestampPersistence.java
rename to internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/streaming/TimestampPersistence.java
index 6f7b6a8dd1..d32d0de856 100644
--- a/internal/utils/akka/src/main/java/org/eclipse/ditto/internal/utils/akka/streaming/TimestampPersistence.java
+++ b/internal/utils/pekko/src/main/java/org/eclipse/ditto/internal/utils/pekko/streaming/TimestampPersistence.java
@@ -10,17 +10,17 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.streaming;
+package org.eclipse.ditto.internal.utils.pekko.streaming;
import java.time.Instant;
import java.util.Optional;
import javax.annotation.Nullable;
-import akka.Done;
-import akka.NotUsed;
-import akka.japi.Pair;
-import akka.stream.javadsl.Source;
+import org.apache.pekko.Done;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.japi.Pair;
+import org.apache.pekko.stream.javadsl.Source;
/**
* Defines operations for managing metadata of streams.
diff --git a/internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/AkkaClassLoader.scala b/internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/PekkoClassLoader.scala
similarity index 93%
rename from internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/AkkaClassLoader.scala
rename to internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/PekkoClassLoader.scala
index e0aff6be88..42e4a9b0fd 100644
--- a/internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/AkkaClassLoader.scala
+++ b/internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/PekkoClassLoader.scala
@@ -10,9 +10,9 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka
+package org.eclipse.ditto.internal.utils.pekko
-import akka.actor.{ActorSystem, DynamicAccess, ExtendedActorSystem}
+import org.apache.pekko.actor.{ActorSystem, DynamicAccess, ExtendedActorSystem}
import java.util.Collections
import scala.collection.JavaConverters.asScalaBuffer
@@ -20,7 +20,7 @@ import scala.collection.immutable
import scala.reflect.ClassTag
/** Java-friendly interface to load and instantiate classes inside an actor system. */
-object AkkaClassLoader {
+object PekkoClassLoader {
/** Dynamically instantiate a class with its zero-argument public constructor.
*
diff --git a/internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/actors/AbstractActorWithStashWithTimers.scala b/internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/actors/AbstractActorWithStashWithTimers.scala
similarity index 82%
rename from internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/actors/AbstractActorWithStashWithTimers.scala
rename to internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/actors/AbstractActorWithStashWithTimers.scala
index 6aae60f753..eb77ab4bf2 100644
--- a/internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/actors/AbstractActorWithStashWithTimers.scala
+++ b/internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/actors/AbstractActorWithStashWithTimers.scala
@@ -10,9 +10,9 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.actors
+package org.eclipse.ditto.internal.utils.pekko.actors
-import akka.actor.{AbstractActorWithTimers, Stash}
+import org.apache.pekko.actor.{AbstractActorWithTimers, Stash}
/**
* Java's `Actor with Stash with Timers`.
diff --git a/internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/logging/AbstractDiagnosticLoggingAdapter.scala b/internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/logging/AbstractDiagnosticLoggingAdapter.scala
similarity index 95%
rename from internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/logging/AbstractDiagnosticLoggingAdapter.scala
rename to internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/logging/AbstractDiagnosticLoggingAdapter.scala
index 4d1a20dcf4..c54ec3dce5 100644
--- a/internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/logging/AbstractDiagnosticLoggingAdapter.scala
+++ b/internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/logging/AbstractDiagnosticLoggingAdapter.scala
@@ -10,9 +10,9 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging
+package org.eclipse.ditto.internal.utils.pekko.logging
-import akka.event.DiagnosticLoggingAdapter
+import org.apache.pekko.event.DiagnosticLoggingAdapter
import javax.annotation.Nullable
import javax.annotation.concurrent.NotThreadSafe
diff --git a/internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/logging/DiagnosticBusLogging.scala b/internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/logging/DiagnosticBusLogging.scala
similarity index 83%
rename from internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/logging/DiagnosticBusLogging.scala
rename to internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/logging/DiagnosticBusLogging.scala
index 0167244aa3..c7559bf602 100644
--- a/internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/logging/DiagnosticBusLogging.scala
+++ b/internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/logging/DiagnosticBusLogging.scala
@@ -10,9 +10,9 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging
+package org.eclipse.ditto.internal.utils.pekko.logging
-import akka.event.{BusLogging, DiagnosticLoggingAdapter, LoggingBus, LoggingFilter}
+import org.apache.pekko.event.{BusLogging, DiagnosticLoggingAdapter, LoggingBus, LoggingFilter}
/** This class combines [[BusLogging]] with [[DiagnosticLoggingAdapter]] for usage in Java.
*
diff --git a/internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/logging/DittoDiagnosticLoggingAdapter.scala b/internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/logging/DittoDiagnosticLoggingAdapter.scala
similarity index 98%
rename from internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/logging/DittoDiagnosticLoggingAdapter.scala
rename to internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/logging/DittoDiagnosticLoggingAdapter.scala
index 397b909b7e..bdab0b8e18 100644
--- a/internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/logging/DittoDiagnosticLoggingAdapter.scala
+++ b/internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/logging/DittoDiagnosticLoggingAdapter.scala
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging
+package org.eclipse.ditto.internal.utils.pekko.logging
import org.eclipse.ditto.base.model.headers.{DittoHeaders, WithDittoHeaders}
@@ -18,7 +18,7 @@ import javax.annotation.Nullable
import javax.annotation.concurrent.NotThreadSafe
import scala.annotation.varargs
-/** An Akka [[akka.event.DiagnosticLoggingAdapter]] with additional functionality.
+/** An Pekko [[org.apache.pekko.event.DiagnosticLoggingAdapter]] with additional functionality.
*
* The main purpose of DittoDiagnosticLoggingAdapter is to provide an API for easily setting a correlation ID to the
* logging MDC.
diff --git a/internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/logging/MdcEntrySettable.scala b/internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/logging/MdcEntrySettable.scala
similarity index 98%
rename from internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/logging/MdcEntrySettable.scala
rename to internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/logging/MdcEntrySettable.scala
index 93d6adfa2b..0d2dde2344 100644
--- a/internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/logging/MdcEntrySettable.scala
+++ b/internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/logging/MdcEntrySettable.scala
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging
+package org.eclipse.ditto.internal.utils.pekko.logging
import javax.annotation.Nullable
diff --git a/internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/logging/ThreadSafeDittoLoggingAdapter.scala b/internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/logging/ThreadSafeDittoLoggingAdapter.scala
similarity index 96%
rename from internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/logging/ThreadSafeDittoLoggingAdapter.scala
rename to internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/logging/ThreadSafeDittoLoggingAdapter.scala
index 9dc8631431..89a578601c 100644
--- a/internal/utils/akka/src/main/scala/org/eclipse/ditto/internal/utils/akka/logging/ThreadSafeDittoLoggingAdapter.scala
+++ b/internal/utils/pekko/src/main/scala/org/eclipse/ditto/internal/utils/pekko/logging/ThreadSafeDittoLoggingAdapter.scala
@@ -10,15 +10,15 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging
+package org.eclipse.ditto.internal.utils.pekko.logging
-import akka.event.LoggingAdapter
+import org.apache.pekko.event.LoggingAdapter
import org.eclipse.ditto.base.model.headers.{DittoHeaders, WithDittoHeaders}
import javax.annotation.Nullable
import javax.annotation.concurrent.ThreadSafe
-/** A [[akka.event.LoggingAdapter]] with additional functionality.
+/** A [[org.apache.pekko.event.LoggingAdapter]] with additional functionality.
*
* The main purpose of ThreadSafeDittoLoggingAdapter is to provide an API for easily setting a correlation ID
* or other arbitrary values to the logging
diff --git a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/ActorSystemResource.java b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/ActorSystemResource.java
similarity index 94%
rename from internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/ActorSystemResource.java
rename to internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/ActorSystemResource.java
index 68d6772882..252361437b 100644
--- a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/ActorSystemResource.java
+++ b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/ActorSystemResource.java
@@ -10,14 +10,13 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka;
+package org.eclipse.ditto.internal.utils.pekko;
import static org.eclipse.ditto.base.model.common.ConditionChecker.argumentNotEmpty;
import static org.eclipse.ditto.base.model.common.ConditionChecker.argumentNotNull;
import static org.eclipse.ditto.base.model.common.ConditionChecker.checkNotNull;
import java.text.MessageFormat;
-import java.util.concurrent.TimeUnit;
import javax.annotation.Nullable;
import javax.annotation.concurrent.NotThreadSafe;
@@ -29,13 +28,12 @@
import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;
-import akka.actor.ActorRef;
-import akka.actor.ActorSystem;
-import akka.actor.Props;
-import akka.stream.Materializer;
-import akka.testkit.TestProbe;
-import akka.testkit.javadsl.TestKit;
-import scala.concurrent.duration.Duration;
+import org.apache.pekko.actor.ActorRef;
+import org.apache.pekko.actor.ActorSystem;
+import org.apache.pekko.actor.Props;
+import org.apache.pekko.stream.Materializer;
+import org.apache.pekko.testkit.TestProbe;
+import org.apache.pekko.testkit.javadsl.TestKit;
/**
* Starts an {@link ActorSystem} for the test and stops it afterwards.
diff --git a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/controlflow/LazyZipTest.java b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/controlflow/LazyZipTest.java
similarity index 79%
rename from internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/controlflow/LazyZipTest.java
rename to internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/controlflow/LazyZipTest.java
index 42d4995b83..962fdd5f2e 100644
--- a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/controlflow/LazyZipTest.java
+++ b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/controlflow/LazyZipTest.java
@@ -10,25 +10,25 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.controlflow;
+package org.eclipse.ditto.internal.utils.pekko.controlflow;
import org.junit.After;
import org.junit.Test;
-import akka.NotUsed;
-import akka.actor.ActorSystem;
-import akka.japi.Pair;
-import akka.stream.FanInShape2;
-import akka.stream.Graph;
-import akka.stream.SourceShape;
-import akka.stream.javadsl.GraphDSL;
-import akka.stream.javadsl.Keep;
-import akka.stream.javadsl.Source;
-import akka.stream.testkit.TestPublisher;
-import akka.stream.testkit.TestSubscriber;
-import akka.stream.testkit.javadsl.TestSink;
-import akka.stream.testkit.javadsl.TestSource;
-import akka.testkit.javadsl.TestKit;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.actor.ActorSystem;
+import org.apache.pekko.japi.Pair;
+import org.apache.pekko.stream.FanInShape2;
+import org.apache.pekko.stream.Graph;
+import org.apache.pekko.stream.SourceShape;
+import org.apache.pekko.stream.javadsl.GraphDSL;
+import org.apache.pekko.stream.javadsl.Keep;
+import org.apache.pekko.stream.javadsl.Source;
+import org.apache.pekko.stream.testkit.TestPublisher;
+import org.apache.pekko.stream.testkit.TestSubscriber;
+import org.apache.pekko.stream.testkit.javadsl.TestSink;
+import org.apache.pekko.stream.testkit.javadsl.TestSource;
+import org.apache.pekko.testkit.javadsl.TestKit;
/**
* Tests {@link LazyZip}.
diff --git a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/controlflow/MergeSortedAsPairTest.java b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/controlflow/MergeSortedAsPairTest.java
similarity index 93%
rename from internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/controlflow/MergeSortedAsPairTest.java
rename to internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/controlflow/MergeSortedAsPairTest.java
index 5b6eb04730..75eff1b56b 100644
--- a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/controlflow/MergeSortedAsPairTest.java
+++ b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/controlflow/MergeSortedAsPairTest.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.controlflow;
+package org.eclipse.ditto.internal.utils.pekko.controlflow;
import static org.assertj.core.api.Java6Assertions.assertThat;
@@ -22,21 +22,21 @@
import org.junit.BeforeClass;
import org.junit.Test;
-import akka.NotUsed;
-import akka.actor.ActorSystem;
-import akka.japi.Pair;
-import akka.stream.FanInShape2;
-import akka.stream.Graph;
-import akka.stream.SourceShape;
-import akka.stream.javadsl.GraphDSL;
-import akka.stream.javadsl.Keep;
-import akka.stream.javadsl.Sink;
-import akka.stream.javadsl.Source;
-import akka.stream.testkit.TestPublisher;
-import akka.stream.testkit.TestSubscriber;
-import akka.stream.testkit.javadsl.TestSink;
-import akka.stream.testkit.javadsl.TestSource;
-import akka.testkit.javadsl.TestKit;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.actor.ActorSystem;
+import org.apache.pekko.japi.Pair;
+import org.apache.pekko.stream.FanInShape2;
+import org.apache.pekko.stream.Graph;
+import org.apache.pekko.stream.SourceShape;
+import org.apache.pekko.stream.javadsl.GraphDSL;
+import org.apache.pekko.stream.javadsl.Keep;
+import org.apache.pekko.stream.javadsl.Sink;
+import org.apache.pekko.stream.javadsl.Source;
+import org.apache.pekko.stream.testkit.TestPublisher;
+import org.apache.pekko.stream.testkit.TestSubscriber;
+import org.apache.pekko.stream.testkit.javadsl.TestSink;
+import org.apache.pekko.stream.testkit.javadsl.TestSource;
+import org.apache.pekko.testkit.javadsl.TestKit;
import scala.concurrent.duration.FiniteDuration;
/**
diff --git a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/controlflow/ResumeSourceTest.java b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/controlflow/ResumeSourceTest.java
similarity index 89%
rename from internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/controlflow/ResumeSourceTest.java
rename to internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/controlflow/ResumeSourceTest.java
index 2f4fb860b7..d6c9ad9682 100644
--- a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/controlflow/ResumeSourceTest.java
+++ b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/controlflow/ResumeSourceTest.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.controlflow;
+package org.eclipse.ditto.internal.utils.pekko.controlflow;
import static org.assertj.core.api.Assertions.assertThat;
@@ -20,20 +20,20 @@
import org.junit.Before;
import org.junit.Test;
-import akka.NotUsed;
-import akka.actor.ActorRef;
-import akka.actor.ActorSystem;
-import akka.japi.Pair;
-import akka.pattern.Patterns;
-import akka.stream.Attributes;
-import akka.stream.StreamLimitReachedException;
-import akka.stream.javadsl.Sink;
-import akka.stream.javadsl.Source;
-import akka.stream.testkit.TestPublisher;
-import akka.stream.testkit.TestSubscriber;
-import akka.stream.testkit.javadsl.TestSink;
-import akka.stream.testkit.javadsl.TestSource;
-import akka.testkit.javadsl.TestKit;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.actor.ActorRef;
+import org.apache.pekko.actor.ActorSystem;
+import org.apache.pekko.japi.Pair;
+import org.apache.pekko.pattern.Patterns;
+import org.apache.pekko.stream.Attributes;
+import org.apache.pekko.stream.StreamLimitReachedException;
+import org.apache.pekko.stream.javadsl.Sink;
+import org.apache.pekko.stream.javadsl.Source;
+import org.apache.pekko.stream.testkit.TestPublisher;
+import org.apache.pekko.stream.testkit.TestSubscriber;
+import org.apache.pekko.stream.testkit.javadsl.TestSink;
+import org.apache.pekko.stream.testkit.javadsl.TestSource;
+import org.apache.pekko.testkit.javadsl.TestKit;
/**
* Tests {@link ResumeSource}.
diff --git a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/controlflow/TimeoutFlowTest.java b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/controlflow/TimeoutFlowTest.java
similarity index 88%
rename from internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/controlflow/TimeoutFlowTest.java
rename to internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/controlflow/TimeoutFlowTest.java
index 864c95ba26..03f6ded6e3 100644
--- a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/controlflow/TimeoutFlowTest.java
+++ b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/controlflow/TimeoutFlowTest.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.controlflow;
+package org.eclipse.ditto.internal.utils.pekko.controlflow;
import java.time.Duration;
@@ -18,16 +18,16 @@
import org.junit.Before;
import org.junit.Test;
-import akka.NotUsed;
-import akka.actor.ActorSystem;
-import akka.japi.Pair;
-import akka.stream.javadsl.Flow;
-import akka.stream.javadsl.Sink;
-import akka.stream.javadsl.Source;
-import akka.stream.testkit.TestSubscriber;
-import akka.stream.testkit.javadsl.TestSink;
-import akka.stream.testkit.javadsl.TestSource;
-import akka.testkit.javadsl.TestKit;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.actor.ActorSystem;
+import org.apache.pekko.japi.Pair;
+import org.apache.pekko.stream.javadsl.Flow;
+import org.apache.pekko.stream.javadsl.Sink;
+import org.apache.pekko.stream.javadsl.Source;
+import org.apache.pekko.stream.testkit.TestSubscriber;
+import org.apache.pekko.stream.testkit.javadsl.TestSink;
+import org.apache.pekko.stream.testkit.javadsl.TestSource;
+import org.apache.pekko.testkit.javadsl.TestKit;
public final class TimeoutFlowTest {
diff --git a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/controlflow/TransistorTest.java b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/controlflow/TransistorTest.java
similarity index 91%
rename from internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/controlflow/TransistorTest.java
rename to internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/controlflow/TransistorTest.java
index cb562468ac..3171f06353 100644
--- a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/controlflow/TransistorTest.java
+++ b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/controlflow/TransistorTest.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.controlflow;
+package org.eclipse.ditto.internal.utils.pekko.controlflow;
import java.util.ArrayList;
import java.util.Arrays;
@@ -26,19 +26,19 @@
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
-import akka.actor.ActorSystem;
-import akka.japi.Pair;
-import akka.stream.Graph;
-import akka.stream.SourceShape;
-import akka.stream.javadsl.GraphDSL$;
-import akka.stream.javadsl.Keep;
-import akka.stream.javadsl.Sink;
-import akka.stream.javadsl.Source;
-import akka.stream.testkit.TestPublisher;
-import akka.stream.testkit.TestSubscriber;
-import akka.stream.testkit.javadsl.TestSink;
-import akka.stream.testkit.javadsl.TestSource;
-import akka.testkit.javadsl.TestKit;
+import org.apache.pekko.actor.ActorSystem;
+import org.apache.pekko.japi.Pair;
+import org.apache.pekko.stream.Graph;
+import org.apache.pekko.stream.SourceShape;
+import org.apache.pekko.stream.javadsl.GraphDSL$;
+import org.apache.pekko.stream.javadsl.Keep;
+import org.apache.pekko.stream.javadsl.Sink;
+import org.apache.pekko.stream.javadsl.Source;
+import org.apache.pekko.stream.testkit.TestPublisher;
+import org.apache.pekko.stream.testkit.TestSubscriber;
+import org.apache.pekko.stream.testkit.javadsl.TestSink;
+import org.apache.pekko.stream.testkit.javadsl.TestSource;
+import org.apache.pekko.testkit.javadsl.TestKit;
/**
* Tests {@link Transistor} with all combinations of activation orders
diff --git a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/CapturingMdcAdapterObserver.java b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/CapturingMdcAdapterObserver.java
similarity index 96%
rename from internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/CapturingMdcAdapterObserver.java
rename to internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/CapturingMdcAdapterObserver.java
index 854b12c7d3..d1b71de867 100644
--- a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/CapturingMdcAdapterObserver.java
+++ b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/CapturingMdcAdapterObserver.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import static org.assertj.core.api.Assertions.entry;
diff --git a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultAutoCloseableSlf4jLoggerTest.java b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultAutoCloseableSlf4jLoggerTest.java
similarity index 99%
rename from internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultAutoCloseableSlf4jLoggerTest.java
rename to internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultAutoCloseableSlf4jLoggerTest.java
index ded7f5666a..93141e4998 100644
--- a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultAutoCloseableSlf4jLoggerTest.java
+++ b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultAutoCloseableSlf4jLoggerTest.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatNullPointerException;
diff --git a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultDiagnosticLoggingAdapterTest.java b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultDiagnosticLoggingAdapterTest.java
similarity index 98%
rename from internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultDiagnosticLoggingAdapterTest.java
rename to internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultDiagnosticLoggingAdapterTest.java
index bc2a9dfc00..003cab7f4e 100644
--- a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultDiagnosticLoggingAdapterTest.java
+++ b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultDiagnosticLoggingAdapterTest.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
@@ -27,7 +27,7 @@
import org.mockito.Mockito;
import org.mockito.junit.MockitoJUnitRunner;
-import akka.event.DiagnosticLoggingAdapter;
+import org.apache.pekko.event.DiagnosticLoggingAdapter;
/**
* Unit test for {@link DefaultDiagnosticLoggingAdapter}.
diff --git a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultDittoDiagnosticLoggingAdapterTest.java b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultDittoDiagnosticLoggingAdapterTest.java
similarity index 99%
rename from internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultDittoDiagnosticLoggingAdapterTest.java
rename to internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultDittoDiagnosticLoggingAdapterTest.java
index 2f6c3c439b..adffaae9c8 100644
--- a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultDittoDiagnosticLoggingAdapterTest.java
+++ b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultDittoDiagnosticLoggingAdapterTest.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
@@ -28,7 +28,7 @@
import org.mockito.Mockito;
import org.mockito.junit.MockitoJUnitRunner;
-import akka.event.DiagnosticLoggingAdapter;
+import org.apache.pekko.event.DiagnosticLoggingAdapter;
/**
* Unit test for {@link DefaultDittoDiagnosticLoggingAdapter}.
diff --git a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultDittoLoggerTest.java b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultDittoLoggerTest.java
similarity index 99%
rename from internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultDittoLoggerTest.java
rename to internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultDittoLoggerTest.java
index bbaf4e1c82..1895f336dd 100644
--- a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultDittoLoggerTest.java
+++ b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultDittoLoggerTest.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatNullPointerException;
diff --git a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultMdcEntryTest.java b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultMdcEntryTest.java
similarity index 97%
rename from internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultMdcEntryTest.java
rename to internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultMdcEntryTest.java
index af9eaef54b..27eccb5ad8 100644
--- a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/DefaultMdcEntryTest.java
+++ b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/DefaultMdcEntryTest.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
diff --git a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/ImmutableDittoLoggerTest.java b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/ImmutableDittoLoggerTest.java
similarity index 99%
rename from internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/ImmutableDittoLoggerTest.java
rename to internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/ImmutableDittoLoggerTest.java
index 76f5b2135e..653772f322 100644
--- a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/ImmutableDittoLoggerTest.java
+++ b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/ImmutableDittoLoggerTest.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatNullPointerException;
diff --git a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/ImmutableDittoLoggingAdapterTest.java b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/ImmutableDittoLoggingAdapterTest.java
similarity index 99%
rename from internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/ImmutableDittoLoggingAdapterTest.java
rename to internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/ImmutableDittoLoggingAdapterTest.java
index cd9235746c..99d58a8ee4 100644
--- a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/logging/ImmutableDittoLoggingAdapterTest.java
+++ b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/logging/ImmutableDittoLoggingAdapterTest.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.logging;
+package org.eclipse.ditto.internal.utils.pekko.logging;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatNullPointerException;
@@ -29,7 +29,7 @@
import org.mockito.Mockito;
import org.mockito.junit.MockitoJUnitRunner;
-import akka.event.DiagnosticLoggingAdapter;
+import org.apache.pekko.event.DiagnosticLoggingAdapter;
/**
* Unit test for {@link ImmutableDittoLoggingAdapter}.
diff --git a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/mailbox/MonitoredUnboundedMailboxTypeTest.java b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/mailbox/MonitoredUnboundedMailboxTypeTest.java
similarity index 88%
rename from internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/mailbox/MonitoredUnboundedMailboxTypeTest.java
rename to internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/mailbox/MonitoredUnboundedMailboxTypeTest.java
index 5cd08f6069..f5cc0e06ea 100644
--- a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/mailbox/MonitoredUnboundedMailboxTypeTest.java
+++ b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/mailbox/MonitoredUnboundedMailboxTypeTest.java
@@ -10,9 +10,9 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
- package org.eclipse.ditto.internal.utils.akka.mailbox;
+ package org.eclipse.ditto.internal.utils.pekko.mailbox;
- import static akka.Done.done;
+ import static org.apache.pekko.Done.done;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.concurrent.CountDownLatch;
@@ -26,16 +26,16 @@
import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;
- import akka.actor.AbstractActor;
- import akka.actor.ActorRef;
- import akka.actor.ActorSystem;
- import akka.actor.Props;
- import akka.dispatch.MessageQueue;
- import akka.dispatch.UnboundedMailbox;
- import akka.event.Logging;
- import akka.event.LoggingAdapter;
- import akka.testkit.javadsl.EventFilter;
- import akka.testkit.javadsl.TestKit;
+ import org.apache.pekko.actor.AbstractActor;
+ import org.apache.pekko.actor.ActorRef;
+ import org.apache.pekko.actor.ActorSystem;
+ import org.apache.pekko.actor.Props;
+ import org.apache.pekko.dispatch.MessageQueue;
+ import org.apache.pekko.dispatch.UnboundedMailbox;
+ import org.apache.pekko.event.Logging;
+ import org.apache.pekko.event.LoggingAdapter;
+ import org.apache.pekko.testkit.javadsl.EventFilter;
+ import org.apache.pekko.testkit.javadsl.TestKit;
import scala.Option;
public final class MonitoredUnboundedMailboxTypeTest {
diff --git a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/streaming/StreamAckTest.java b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/streaming/StreamAckTest.java
similarity index 97%
rename from internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/streaming/StreamAckTest.java
rename to internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/streaming/StreamAckTest.java
index 64f881f2b0..6fd17ca58c 100644
--- a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/streaming/StreamAckTest.java
+++ b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/streaming/StreamAckTest.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.streaming;
+package org.eclipse.ditto.internal.utils.pekko.streaming;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mutabilitydetector.unittesting.MutabilityAssert.assertInstancesOf;
diff --git a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/streaming/StreamTriggerTest.java b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/streaming/StreamTriggerTest.java
similarity index 98%
rename from internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/streaming/StreamTriggerTest.java
rename to internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/streaming/StreamTriggerTest.java
index 5f079c3330..85aa7689b9 100644
--- a/internal/utils/akka/src/test/java/org/eclipse/ditto/internal/utils/akka/streaming/StreamTriggerTest.java
+++ b/internal/utils/pekko/src/test/java/org/eclipse/ditto/internal/utils/pekko/streaming/StreamTriggerTest.java
@@ -10,7 +10,7 @@
*
* SPDX-License-Identifier: EPL-2.0
*/
-package org.eclipse.ditto.internal.utils.akka.streaming;
+package org.eclipse.ditto.internal.utils.pekko.streaming;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mutabilitydetector.unittesting.MutabilityAssert.assertInstancesOf;
diff --git a/internal/utils/akka/src/test/java/org/slf4j/impl/ObservableMdcAdapter.java b/internal/utils/pekko/src/test/java/org/slf4j/impl/ObservableMdcAdapter.java
similarity index 100%
rename from internal/utils/akka/src/test/java/org/slf4j/impl/ObservableMdcAdapter.java
rename to internal/utils/pekko/src/test/java/org/slf4j/impl/ObservableMdcAdapter.java
diff --git a/internal/utils/akka/src/test/java/org/slf4j/impl/StaticMDCBinder.java b/internal/utils/pekko/src/test/java/org/slf4j/impl/StaticMDCBinder.java
similarity index 100%
rename from internal/utils/akka/src/test/java/org/slf4j/impl/StaticMDCBinder.java
rename to internal/utils/pekko/src/test/java/org/slf4j/impl/StaticMDCBinder.java
diff --git a/internal/utils/akka/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker b/internal/utils/pekko/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker
similarity index 100%
rename from internal/utils/akka/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker
rename to internal/utils/pekko/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker
diff --git a/internal/utils/akka/src/test/resources/monitored-mailbox-test.conf b/internal/utils/pekko/src/test/resources/monitored-mailbox-test.conf
similarity index 66%
rename from internal/utils/akka/src/test/resources/monitored-mailbox-test.conf
rename to internal/utils/pekko/src/test/resources/monitored-mailbox-test.conf
index 1e7dad001e..0311fab320 100644
--- a/internal/utils/akka/src/test/resources/monitored-mailbox-test.conf
+++ b/internal/utils/pekko/src/test/resources/monitored-mailbox-test.conf
@@ -1,6 +1,6 @@
-akka.loggers = [akka.testkit.TestEventListener]
+pekko.loggers = [org.apache.pekko.testkit.TestEventListener]
test-monitored-unbounded-mailbox {
- mailbox-type = "org.eclipse.ditto.internal.utils.akka.mailbox.MonitoredUnboundedMailboxType"
+ mailbox-type = "org.eclipse.ditto.internal.utils.pekko.mailbox.MonitoredUnboundedMailboxType"
monitored-unbounded-mailbox {
threshold-for-logging = 2
diff --git a/internal/utils/persistence/pom.xml b/internal/utils/persistence/pom.xml
index eb2ace121a..579190bcba 100755
--- a/internal/utils/persistence/pom.xml
+++ b/internal/utils/persistence/pom.xml
@@ -27,7 +27,7 @@
org.eclipse.ditto
- ditto-internal-utils-akka
+ ditto-internal-utils-pekko
org.eclipse.ditto
@@ -59,12 +59,12 @@
- com.typesafe.akka
- akka-actor_${scala.version}
+ org.apache.pekko
+ pekko-actor_${scala.version}
- com.typesafe.akka
- akka-cluster-tools_${scala.version}
+ org.apache.pekko
+ pekko-cluster-tools_${scala.version}
org.mongodb
@@ -72,18 +72,26 @@
com.github.scullxbones
- akka-persistence-mongo-common_${scala.version}
+ pekko-persistence-mongodb_${scala.version}
- com.github.scullxbones
- akka-persistence-mongo-scala_${scala.version}
+ org.mongodb.scala
+ mongo-scala-driver_2.13
+
com.github.ben-manes.caffeine
caffeine
+
+
+ org.scala-lang.modules
+ scala-java8-compat_2.13
+
+
+
io.netty
netty-buffer
@@ -105,7 +113,7 @@
org.eclipse.ditto
- ditto-internal-utils-akka
+ ditto-internal-utils-pekko
test
test-jar
@@ -130,18 +138,18 @@
test
- com.typesafe.akka
- akka-testkit_${scala.version}
+ org.apache.pekko
+ pekko-testkit_${scala.version}
test
- com.typesafe.akka
- akka-stream-testkit_${scala.version}
+ org.apache.pekko
+ pekko-stream-testkit_${scala.version}
test
- com.typesafe.akka
- akka-slf4j_${scala.version}
+ org.apache.pekko
+ pekko-slf4j_${scala.version}
test
@@ -151,8 +159,8 @@
test
- com.typesafe.akka
- akka-persistence-query_${scala.version}
+ org.apache.pekko
+ pekko-persistence-query_${scala.version}
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/SafeRecovery.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/SafeRecovery.java
index e7497b4f8e..7cfc8cd464 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/SafeRecovery.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/SafeRecovery.java
@@ -15,12 +15,12 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
-import akka.actor.AbstractActor;
-import akka.event.DiagnosticLoggingAdapter;
-import akka.japi.pf.ReceiveBuilder;
+import org.apache.pekko.actor.AbstractActor;
+import org.apache.pekko.event.DiagnosticLoggingAdapter;
+import org.apache.pekko.japi.pf.ReceiveBuilder;
/**
- * A wrapper of the result of {@link akka.japi.pf.ReceiveBuilder} that never fails.
+ * A wrapper of the result of {@link org.apache.pekko.japi.pf.ReceiveBuilder} that never fails.
*/
public final class SafeRecovery {
@@ -28,7 +28,7 @@ public final class SafeRecovery {
* Creates a Receive for recovery such that exceptions are logged as warnings
* and not thrown. Recovery messages causing exceptions have no effect.
*
- * @param log The Akka logger to write warnings to.
+ * @param log The Pekko logger to write warnings to.
* @param receiveRecover The Receive to wrap around.
*
* @return the created Receive.
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/SnapshotAdapter.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/SnapshotAdapter.java
index a219acf0c0..fb34c4992c 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/SnapshotAdapter.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/SnapshotAdapter.java
@@ -21,15 +21,15 @@
import com.typesafe.config.Config;
-import akka.actor.ActorSystem;
-import akka.persistence.SelectedSnapshot;
-import akka.persistence.SnapshotOffer;
+import org.apache.pekko.actor.ActorSystem;
+import org.apache.pekko.persistence.SelectedSnapshot;
+import org.apache.pekko.persistence.SnapshotOffer;
/**
- * Adapter capable of transforming Snapshots (in {@link #toSnapshotStore(Object)}) done in an Akka PersistentActor to
+ * Adapter capable of transforming Snapshots (in {@link #toSnapshotStore(Object)}) done in an Pekko PersistentActor to
* another representation before persisting to the Snapshot-Store.
* Also intercepts loading a Database's Snapshot representation (in {@link #fromSnapshotStore(SnapshotOffer)})
- * and is able to transform the Snapshot object before offering it to the Akka PersistentActor.
+ * and is able to transform the Snapshot object before offering it to the Pekko PersistentActor.
* Implement this interface for persisting Snapshots in a DB-optimized way (e.g. in BSON format for MongoDB).
*
* @param the domain model type to do a Snapshot for.
@@ -47,7 +47,7 @@ public interface SnapshotAdapter extends DittoExtensionPoint {
/**
* Converts a "database snapshot" (directly loaded from the database) type to a domain model snapshot type.
*
- * @param snapshotOffer the SnapshotOffer as offered from Akka Persistence including the db snapshot.
+ * @param snapshotOffer the SnapshotOffer as offered from Pekko Persistence including the db snapshot.
* @return the transformed domain model type which is offered to the PersistentActor or {@code null}.
*/
@Nullable
@@ -56,7 +56,7 @@ public interface SnapshotAdapter extends DittoExtensionPoint {
/**
* Converts a "database selected snapshot" (directly loaded from the database) type to a domain model snapshot type.
*
- * @param selectedSnapshot the SelectedSnapshot as offered from Akka Persistence including the db snapshot.
+ * @param selectedSnapshot the SelectedSnapshot as offered from Pekko Persistence including the db snapshot.
* @return the transformed domain model type which is offered to the PersistentActor or {@code null}.
*/
@Nullable
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/AbstractMongoEventAdapter.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/AbstractMongoEventAdapter.java
index 41e34a8462..bb9710521c 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/AbstractMongoEventAdapter.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/AbstractMongoEventAdapter.java
@@ -34,10 +34,10 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import akka.actor.ExtendedActorSystem;
-import akka.persistence.journal.EventAdapter;
-import akka.persistence.journal.EventSeq;
-import akka.persistence.journal.Tagged;
+import org.apache.pekko.actor.ExtendedActorSystem;
+import org.apache.pekko.persistence.journal.EventAdapter;
+import org.apache.pekko.persistence.journal.EventSeq;
+import org.apache.pekko.persistence.journal.Tagged;
/**
* Abstract event adapter for persisting Ditto {@link Event}s.
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/AbstractMongoSnapshotAdapter.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/AbstractMongoSnapshotAdapter.java
index 633ddeb421..5b68106216 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/AbstractMongoSnapshotAdapter.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/AbstractMongoSnapshotAdapter.java
@@ -31,8 +31,8 @@
import org.eclipse.ditto.json.JsonParseException;
import org.slf4j.Logger;
-import akka.persistence.SelectedSnapshot;
-import akka.persistence.SnapshotOffer;
+import org.apache.pekko.persistence.SelectedSnapshot;
+import org.apache.pekko.persistence.SnapshotOffer;
/**
* Abstract implementation of a MongoDB specific {@link SnapshotAdapter} for a {@link Jsonifiable}.
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/AbstractPersistenceStreamingActor.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/AbstractPersistenceStreamingActor.java
index 5d2b095c84..b463d391ad 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/AbstractPersistenceStreamingActor.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/AbstractPersistenceStreamingActor.java
@@ -21,7 +21,7 @@
import org.eclipse.ditto.internal.models.streaming.BatchedEntityIdWithRevisions;
import org.eclipse.ditto.internal.models.streaming.EntityIdWithRevision;
import org.eclipse.ditto.internal.models.streaming.SudoStreamPids;
-import org.eclipse.ditto.internal.utils.akka.streaming.AbstractStreamingActor;
+import org.eclipse.ditto.internal.utils.pekko.streaming.AbstractStreamingActor;
import org.eclipse.ditto.internal.utils.config.DefaultScopedConfig;
import org.eclipse.ditto.internal.utils.persistence.mongo.config.DefaultMongoDbConfig;
import org.eclipse.ditto.internal.utils.persistence.mongo.config.MongoDbConfig;
@@ -29,8 +29,8 @@
import org.eclipse.ditto.internal.utils.persistence.mongo.streaming.PidWithSeqNr;
import org.eclipse.ditto.utils.jsr305.annotations.AllValuesAreNonnullByDefault;
-import akka.NotUsed;
-import akka.stream.javadsl.Source;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.stream.javadsl.Source;
/**
* Abstract implementation of an Actor that streams information about persisted entities modified in a time window in
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/DefaultPersistenceStreamingActor.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/DefaultPersistenceStreamingActor.java
index 248f27f391..8c1fad74b2 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/DefaultPersistenceStreamingActor.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/DefaultPersistenceStreamingActor.java
@@ -19,7 +19,7 @@
import org.eclipse.ditto.internal.utils.persistence.mongo.streaming.PidWithSeqNr;
import org.eclipse.ditto.utils.jsr305.annotations.AllValuesAreNonnullByDefault;
-import akka.actor.Props;
+import org.apache.pekko.actor.Props;
/**
* Configurable default implementation of {@link AbstractPersistenceStreamingActor}.
@@ -50,7 +50,7 @@ private DefaultPersistenceStreamingActor(final Class elementClass,
}
/**
- * Creates Akka configuration object Props for this PersistenceStreamingActor.
+ * Creates Pekko configuration object Props for this PersistenceStreamingActor.
*
* @param type of messages to stream.
* @param elementClass class of the elements.
@@ -58,7 +58,7 @@ private DefaultPersistenceStreamingActor(final Class elementClass,
* {@link org.eclipse.ditto.internal.utils.persistence.mongo.streaming.PidWithSeqNr} to {@code T}.
* The resulting entity will be streamed to the recipient actor.
* @param entityUnmapper the inverse of {@code entityMapper}.
- * @return the Akka configuration Props object.
+ * @return the Pekko configuration Props object.
*/
public static > Props props(final Class elementClass,
final Function entityMapper,
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/DittoMongoCollectionCache.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/DittoMongoCollectionCache.java
index 670a732952..01fbcbb695 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/DittoMongoCollectionCache.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/DittoMongoCollectionCache.java
@@ -24,7 +24,7 @@
import com.typesafe.config.Config;
import com.typesafe.config.ConfigException;
-import akka.contrib.persistence.mongodb.MongoCollectionCache;
+import pekko.contrib.persistence.mongodb.MongoCollectionCache;
import scala.Function1;
import scala.concurrent.Future;
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/MongoHealthChecker.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/MongoHealthChecker.java
index f138e963ef..3b03a5478a 100755
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/MongoHealthChecker.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/MongoHealthChecker.java
@@ -33,12 +33,12 @@
import com.mongodb.client.result.DeleteResult;
import com.mongodb.reactivestreams.client.MongoCollection;
-import akka.actor.ActorRef;
-import akka.actor.Props;
-import akka.japi.pf.ReceiveBuilder;
-import akka.stream.Materializer;
-import akka.stream.javadsl.Sink;
-import akka.stream.javadsl.Source;
+import org.apache.pekko.actor.ActorRef;
+import org.apache.pekko.actor.Props;
+import org.apache.pekko.japi.pf.ReceiveBuilder;
+import org.apache.pekko.stream.Materializer;
+import org.apache.pekko.stream.javadsl.Sink;
+import org.apache.pekko.stream.javadsl.Source;
/**
* Actor for handling calls to the mongodb.
@@ -85,9 +85,9 @@ public void postStop() {
}
/**
- * Creates Akka configuration object Props for this MongoClientActor.
+ * Creates Pekko configuration object Props for this MongoClientActor.
*
- * @return the Akka configuration Props object
+ * @return the Pekko configuration Props object
* @throws NullPointerException if {@code mongoDbConfig} is {@code null}.
*/
public static Props props() {
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/SnapshotStreamingActor.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/SnapshotStreamingActor.java
index 1c8f727957..c4764d53c7 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/SnapshotStreamingActor.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/SnapshotStreamingActor.java
@@ -25,9 +25,9 @@
import org.eclipse.ditto.base.model.entity.type.EntityType;
import org.eclipse.ditto.internal.models.streaming.StreamedSnapshot;
import org.eclipse.ditto.internal.models.streaming.SudoStreamSnapshots;
-import org.eclipse.ditto.internal.utils.akka.actors.AbstractActorWithShutdownBehavior;
-import org.eclipse.ditto.internal.utils.akka.logging.DittoDiagnosticLoggingAdapter;
-import org.eclipse.ditto.internal.utils.akka.logging.DittoLoggerFactory;
+import org.eclipse.ditto.internal.utils.pekko.actors.AbstractActorWithShutdownBehavior;
+import org.eclipse.ditto.internal.utils.pekko.logging.DittoDiagnosticLoggingAdapter;
+import org.eclipse.ditto.internal.utils.pekko.logging.DittoLoggerFactory;
import org.eclipse.ditto.internal.utils.cluster.DistPubSubAccess;
import org.eclipse.ditto.internal.utils.config.DefaultScopedConfig;
import org.eclipse.ditto.internal.utils.persistence.mongo.config.DefaultMongoDbConfig;
@@ -38,21 +38,21 @@
import org.eclipse.ditto.json.JsonValue;
import org.eclipse.ditto.utils.jsr305.annotations.AllValuesAreNonnullByDefault;
-import akka.Done;
-import akka.NotUsed;
-import akka.actor.ActorRef;
-import akka.actor.CoordinatedShutdown;
-import akka.actor.Props;
-import akka.cluster.pubsub.DistributedPubSub;
-import akka.cluster.pubsub.DistributedPubSubMediator;
-import akka.japi.pf.ReceiveBuilder;
-import akka.pattern.Patterns;
-import akka.stream.KillSwitches;
-import akka.stream.Materializer;
-import akka.stream.SharedKillSwitch;
-import akka.stream.SourceRef;
-import akka.stream.javadsl.Source;
-import akka.stream.javadsl.StreamRefs;
+import org.apache.pekko.Done;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.actor.ActorRef;
+import org.apache.pekko.actor.CoordinatedShutdown;
+import org.apache.pekko.actor.Props;
+import org.apache.pekko.cluster.pubsub.DistributedPubSub;
+import org.apache.pekko.cluster.pubsub.DistributedPubSubMediator;
+import org.apache.pekko.japi.pf.ReceiveBuilder;
+import org.apache.pekko.pattern.Patterns;
+import org.apache.pekko.stream.KillSwitches;
+import org.apache.pekko.stream.Materializer;
+import org.apache.pekko.stream.SharedKillSwitch;
+import org.apache.pekko.stream.SourceRef;
+import org.apache.pekko.stream.javadsl.Source;
+import org.apache.pekko.stream.javadsl.StreamRefs;
/**
@@ -108,7 +108,7 @@ private SnapshotStreamingActor(final Function pid2EntityId,
}
/**
- * Create Akka Props object for this actor.
+ * Create Pekko Props object for this actor.
*
* @param pid2EntityId function mapping PID to entity ID.
* @param entityId2Pid function mapping entity ID to PID.
@@ -121,7 +121,7 @@ public static Props props(final Function pid2EntityId,
}
/**
- * Create Akka Props object for this actor with given Mongo client and read journal.
+ * Create Pekko Props object for this actor with given Mongo client and read journal.
* This is useful for unit tests with a mocked MongoDB.
*
* @param pid2EntityId function mapping PID to entity ID.
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/config/SuffixBuilderConfig.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/config/SuffixBuilderConfig.java
index d91146f5c4..bcc283e487 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/config/SuffixBuilderConfig.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/config/SuffixBuilderConfig.java
@@ -20,7 +20,7 @@
import org.eclipse.ditto.internal.utils.config.KnownConfigValue;
/**
- * Provides the configuration settings of the MongoDB suffix builder for the Akka persistence plugin.
+ * Provides the configuration settings of the MongoDB suffix builder for the Pekko persistence plugin.
*/
@Immutable
public interface SuffixBuilderConfig {
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/indices/IndexInitializer.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/indices/IndexInitializer.java
index ffb91abd35..b7a64e4957 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/indices/IndexInitializer.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/indices/IndexInitializer.java
@@ -28,11 +28,11 @@
import com.mongodb.reactivestreams.client.MongoDatabase;
-import akka.Done;
-import akka.NotUsed;
-import akka.stream.Materializer;
-import akka.stream.javadsl.Sink;
-import akka.stream.javadsl.Source;
+import org.apache.pekko.Done;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.stream.Materializer;
+import org.apache.pekko.stream.javadsl.Sink;
+import org.apache.pekko.stream.javadsl.Source;
/**
* Initializes indexes on a MongoDB collection.
@@ -54,7 +54,7 @@ private IndexInitializer(final MongoDatabase db, final Materializer materializer
* Returns a new {@code MongoIndexInitializer}.
*
* @param db the mongo client to use for creating indexes.
- * @param materializer the materializer for akka streams.
+ * @param materializer the materializer for pekko streams.
* @return the index initializer.
*/
public static IndexInitializer of(final MongoDatabase db,
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/indices/IndexOperations.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/indices/IndexOperations.java
index 742fd0c4f0..f5744ba9dd 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/indices/IndexOperations.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/indices/IndexOperations.java
@@ -28,10 +28,10 @@
import com.mongodb.reactivestreams.client.MongoCollection;
import com.mongodb.reactivestreams.client.MongoDatabase;
-import akka.Done;
-import akka.NotUsed;
-import akka.japi.pf.PFBuilder;
-import akka.stream.javadsl.Source;
+import org.apache.pekko.Done;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.japi.pf.PFBuilder;
+import org.apache.pekko.stream.javadsl.Source;
import scala.PartialFunction;
/**
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/MongoOpsUtil.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/MongoOpsUtil.java
index 7ce10aa489..615ca9214b 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/MongoOpsUtil.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/MongoOpsUtil.java
@@ -30,9 +30,9 @@
import com.mongodb.client.model.WriteModel;
import com.mongodb.reactivestreams.client.MongoCollection;
-import akka.NotUsed;
-import akka.japi.pf.PFBuilder;
-import akka.stream.javadsl.Source;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.japi.pf.PFBuilder;
+import org.apache.pekko.stream.javadsl.Source;
/**
* Util for Mongo persistence ops.
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/eventsource/MongoEntitiesPersistenceOperations.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/eventsource/MongoEntitiesPersistenceOperations.java
index 5cdd394fa5..47d3d1d299 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/eventsource/MongoEntitiesPersistenceOperations.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/eventsource/MongoEntitiesPersistenceOperations.java
@@ -25,8 +25,8 @@
import com.mongodb.reactivestreams.client.MongoCollection;
import com.mongodb.reactivestreams.client.MongoDatabase;
-import akka.NotUsed;
-import akka.stream.javadsl.Source;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.stream.javadsl.Source;
/**
* Entities Ops on MongoDB EventSource persistence.
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/eventsource/MongoNamespacePersistenceOperations.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/eventsource/MongoNamespacePersistenceOperations.java
index 2bf21a8d22..c0caacd832 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/eventsource/MongoNamespacePersistenceOperations.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/eventsource/MongoNamespacePersistenceOperations.java
@@ -24,8 +24,8 @@
import com.mongodb.reactivestreams.client.MongoCollection;
import com.mongodb.reactivestreams.client.MongoDatabase;
-import akka.NotUsed;
-import akka.stream.javadsl.Source;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.stream.javadsl.Source;
/**
* Namespace Ops on MongoDB EventSource persistence.
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/eventsource/MongoPersistenceOperationsSelectionProvider.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/eventsource/MongoPersistenceOperationsSelectionProvider.java
index dba2ba84f8..8a1b2de85a 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/eventsource/MongoPersistenceOperationsSelectionProvider.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/eventsource/MongoPersistenceOperationsSelectionProvider.java
@@ -25,7 +25,7 @@
import org.bson.Document;
import org.eclipse.ditto.base.model.entity.id.EntityId;
-import akka.contrib.persistence.mongodb.JournallingFieldNames$;
+import pekko.contrib.persistence.mongodb.JournallingFieldNames$;
/**
* Provides {@link MongoPersistenceOperationsSelection}s for selecting/deleting documents in a MongoDB EventSource
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/MongoReadJournal.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/MongoReadJournal.java
index 1d4d2ed8ba..bf5cd38d8d 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/MongoReadJournal.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/MongoReadJournal.java
@@ -53,36 +53,37 @@
import com.mongodb.reactivestreams.client.MongoCollection;
import com.typesafe.config.Config;
-import akka.Done;
-import akka.NotUsed;
-import akka.actor.ActorSystem;
-import akka.contrib.persistence.mongodb.JavaDslMongoReadJournal;
-import akka.contrib.persistence.mongodb.JournallingFieldNames$;
-import akka.contrib.persistence.mongodb.SnapshottingFieldNames$;
-import akka.japi.Pair;
-import akka.persistence.query.EventEnvelope;
-import akka.persistence.query.Offset;
-import akka.persistence.query.PersistenceQuery;
-import akka.persistence.query.javadsl.CurrentEventsByPersistenceIdQuery;
-import akka.persistence.query.javadsl.CurrentEventsByTagQuery;
-import akka.persistence.query.javadsl.CurrentPersistenceIdsQuery;
-import akka.persistence.query.javadsl.EventsByPersistenceIdQuery;
-import akka.persistence.query.javadsl.EventsByTagQuery;
-import akka.persistence.query.javadsl.PersistenceIdsQuery;
-import akka.stream.Attributes;
-import akka.stream.Materializer;
-import akka.stream.RestartSettings;
-import akka.stream.SystemMaterializer;
-import akka.stream.javadsl.RestartSource;
-import akka.stream.javadsl.Sink;
-import akka.stream.javadsl.Source;
+import org.apache.pekko.Done;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.actor.ActorSystem;
+import org.apache.pekko.japi.Pair;
+import org.apache.pekko.persistence.query.EventEnvelope;
+import org.apache.pekko.persistence.query.Offset;
+import org.apache.pekko.persistence.query.PersistenceQuery;
+import org.apache.pekko.persistence.query.javadsl.CurrentEventsByPersistenceIdQuery;
+import org.apache.pekko.persistence.query.javadsl.CurrentEventsByTagQuery;
+import org.apache.pekko.persistence.query.javadsl.CurrentPersistenceIdsQuery;
+import org.apache.pekko.persistence.query.javadsl.EventsByPersistenceIdQuery;
+import org.apache.pekko.persistence.query.javadsl.EventsByTagQuery;
+import org.apache.pekko.persistence.query.javadsl.PersistenceIdsQuery;
+import org.apache.pekko.stream.Attributes;
+import org.apache.pekko.stream.Materializer;
+import org.apache.pekko.stream.RestartSettings;
+import org.apache.pekko.stream.SystemMaterializer;
+import org.apache.pekko.stream.javadsl.RestartSource;
+import org.apache.pekko.stream.javadsl.Sink;
+import org.apache.pekko.stream.javadsl.Source;
+
+import pekko.contrib.persistence.mongodb.JavaDslMongoReadJournal;
+import pekko.contrib.persistence.mongodb.JournallingFieldNames$;
+import pekko.contrib.persistence.mongodb.SnapshottingFieldNames$;
/**
- * Reads the event journal of {@code com.github.scullxbones.akka-persistence-mongo} plugin.
- * In the Akka system configuration,
+ * Reads the event journal of {@code com.github.scullxbones.pekko-persistence-mongo} plugin.
+ * In the Pekko system configuration,
*
* -
- * {@code akka.persistence.journal.auto-start-journals} must contain exactly 1 configuration key {@code
+ * {@code pekko.persistence.journal.auto-start-journals} must contain exactly 1 configuration key {@code
* },
*
* -
@@ -113,10 +114,10 @@ public final class MongoReadJournal implements CurrentEventsByPersistenceIdQuery
*/
public static final String PRIORITY_TAG_PREFIX = "priority-";
- private static final String AKKA_PERSISTENCE_JOURNAL_AUTO_START =
- "akka.persistence.journal.auto-start-journals";
- private static final String AKKA_PERSISTENCE_SNAPS_AUTO_START =
- "akka.persistence.snapshot-store.auto-start-snapshot-stores";
+ private static final String PEKKO_PERSISTENCE_JOURNAL_AUTO_START =
+ "pekko.persistence.journal.auto-start-journals";
+ private static final String PEKKO_PERSISTENCE_SNAPS_AUTO_START =
+ "pekko.persistence.snapshot-store.auto-start-snapshot-stores";
private static final String JOURNAL_COLLECTION_NAME_KEY = "overrides.journal-collection";
private static final String SNAPS_COLLECTION_NAME_KEY = "overrides.snaps-collection";
@@ -169,7 +170,7 @@ public final class MongoReadJournal implements CurrentEventsByPersistenceIdQuery
private final DittoMongoClient mongoClient;
private final IndexInitializer indexInitializer;
- private final JavaDslMongoReadJournal akkaReadJournal;
+ private final JavaDslMongoReadJournal pekkoReadJournal;
private MongoReadJournal(final String journalCollection,
final String snapsCollection,
@@ -182,7 +183,7 @@ private MongoReadJournal(final String journalCollection,
this.mongoClient = mongoClient;
final var materializer = SystemMaterializer.get(actorSystem).materializer();
indexInitializer = IndexInitializer.of(mongoClient.getDefaultDatabase(), materializer);
- akkaReadJournal = PersistenceQuery.get(actorSystem)
+ pekkoReadJournal = PersistenceQuery.get(actorSystem)
.getReadJournalFor(JavaDslMongoReadJournal.class, readJournalConfigurationKey);
}
@@ -202,15 +203,15 @@ public static MongoReadJournal newInstance(final ActorSystem system) {
/**
* Creates a new {@code MongoReadJournal}.
*
- * @param config The Akka system configuration.
+ * @param config The Pekko system configuration.
* @param mongoClient The Mongo client wrapper.
* @return A {@code MongoReadJournal} object.
*/
public static MongoReadJournal newInstance(final Config config, final DittoMongoClient mongoClient,
final ActorSystem actorSystem) {
- final String autoStartJournalKey = extractAutoStartConfigKey(config, AKKA_PERSISTENCE_JOURNAL_AUTO_START);
- final String autoStartSnapsKey = extractAutoStartConfigKey(config, AKKA_PERSISTENCE_SNAPS_AUTO_START);
+ final String autoStartJournalKey = extractAutoStartConfigKey(config, PEKKO_PERSISTENCE_JOURNAL_AUTO_START);
+ final String autoStartSnapsKey = extractAutoStartConfigKey(config, PEKKO_PERSISTENCE_SNAPS_AUTO_START);
final String journalCollection =
getOverrideCollectionName(config.getConfig(autoStartJournalKey), JOURNAL_COLLECTION_NAME_KEY);
final String snapshotCollection =
@@ -601,33 +602,33 @@ public Source deleteSnapshots(final String pid, final lon
public Source currentEventsByPersistenceId(final String persistenceId,
final long fromSequenceNr,
final long toSequenceNr) {
- return akkaReadJournal.currentEventsByPersistenceId(persistenceId, fromSequenceNr, toSequenceNr);
+ return pekkoReadJournal.currentEventsByPersistenceId(persistenceId, fromSequenceNr, toSequenceNr);
}
@Override
public Source currentEventsByTag(final String tag, final Offset offset) {
- return akkaReadJournal.currentEventsByTag(tag, offset);
+ return pekkoReadJournal.currentEventsByTag(tag, offset);
}
@Override
public Source currentPersistenceIds() {
- return akkaReadJournal.currentPersistenceIds();
+ return pekkoReadJournal.currentPersistenceIds();
}
@Override
public Source eventsByPersistenceId(final String persistenceId, final long fromSequenceNr,
final long toSequenceNr) {
- return akkaReadJournal.eventsByPersistenceId(persistenceId, fromSequenceNr, toSequenceNr);
+ return pekkoReadJournal.eventsByPersistenceId(persistenceId, fromSequenceNr, toSequenceNr);
}
@Override
public Source eventsByTag(final String tag, final Offset offset) {
- return akkaReadJournal.eventsByTag(tag, offset);
+ return pekkoReadJournal.eventsByTag(tag, offset);
}
@Override
public Source persistenceIds() {
- return akkaReadJournal.persistenceIds();
+ return pekkoReadJournal.persistenceIds();
}
private Source
, NotUsed> listPidsInJournal(final MongoCollection journal,
@@ -748,11 +749,13 @@ private Source listPidsInJournalOrderedByPriorityTag(
" 0,\n" +
" {\n" +
" $subtract: [\n" +
- " 1000,\n" + // assumption: max prio is 1000 - all higher prios are not correctly ordered
+ " 1000,\n" +
+ // assumption: max prio is 1000 - all higher prios are not correctly ordered
" {\n" +
" $strLenCP: {\n" +
" $substrCP: [\n" +
- " \"$$tag\", " + PRIORITY_TAG_PREFIX.length() + ", { $strLenCP: \"$$tag\" }\n" +
+ " \"$$tag\", " + PRIORITY_TAG_PREFIX.length() +
+ ", { $strLenCP: \"$$tag\" }\n" +
" ]\n" +
" }\n" +
" }\n" +
@@ -788,7 +791,7 @@ private Source listPidsInJournalOrderedByPriorityTag(
if (mongoClient.getDittoSettings().isDocumentDbCompatibilityMode()) {
aggregatePublisher = journal.aggregate(pipeline);
} else {
- aggregatePublisher = journal.aggregate(pipeline)
+ aggregatePublisher = journal.aggregate(pipeline)
.collation(Collation.builder().locale("en_US").numericOrdering(true).build());
}
@@ -842,7 +845,8 @@ private static Source listLatestJournalEntries(final MongoCol
.withMaxRestarts(maxRestarts, minBackOff);
return RestartSource.onFailuresWithBackoff(restartSettings, () ->
Source.fromPublisher(journal.aggregate(pipeline)
- .batchSize(batchSize) // use batchSize also for the cursor batchSize (16 by default bc of backpressure!)
+ .batchSize(batchSize)
+ // use batchSize also for the cursor batchSize (16 by default bc of backpressure!)
)
);
}
@@ -900,7 +904,7 @@ private static Source listNewestActiveSnapshotsByBatch(
new Document().append("$ne", Arrays.asList("$" + LIFECYCLE, "DELETED")))
.append("then", "$$DESCEND")
.append("else", includeDeleted ? "$$DESCEND" : "$$PRUNE")
- )));
+ )));
// group stage 2: group by max encountered pid, "push" all elements calculated in previous "redact"
final String maxPid = "m";
@@ -968,20 +972,20 @@ private Source, NotUsed> getSnapshotStore() {
/**
* Extract the auto-start journal/snaps config from the configuration of the actor system.
*
- * It assumes that in the Akka system configuration,
- * {@code akka.persistence.journal.auto-start-journals} or
- * {@code akka.persistence.snapshot-store.auto-start-snapshot-stores}
+ * It assumes that in the Pekko system configuration,
+ * {@code pekko.persistence.journal.auto-start-journals} or
+ * {@code pekko.persistence.snapshot-store.auto-start-snapshot-stores}
* contains exactly 1 configuration key, which points to the configuration of the auto-start journal/snapshot-store.
*
* @param config the system configuration.
- * @param key either {@code akka.persistence.journal.auto-start-journals} or
- * {@code akka.persistence.snapshot-store.auto-start-snapshot-stores}.
+ * @param key either {@code pekko.persistence.journal.auto-start-journals} or
+ * {@code pekko.persistence.snapshot-store.auto-start-snapshot-stores}.
*/
private static String extractAutoStartConfigKey(final Config config, final String key) {
final List autoStartJournals = config.getStringList(key);
if (autoStartJournals.size() != 1) {
final String message = String.format("Expect %s to be a singleton list, but it is List(%s)",
- AKKA_PERSISTENCE_JOURNAL_AUTO_START,
+ PEKKO_PERSISTENCE_JOURNAL_AUTO_START,
String.join(", ", autoStartJournals));
throw new IllegalArgumentException(message);
} else {
@@ -999,7 +1003,7 @@ private static String extractAutoStartConfigKey(final Config config, final Strin
* @param journalOrSnapsConfig The journal or snapshot-store configuration.
* @param key Config key of the collection name.
* @return The name of the event journal collection.
- * @throws IllegalArgumentException if {@code akka.persistence.journal.auto-start-journal} is not a singleton list.
+ * @throws IllegalArgumentException if {@code pekko.persistence.journal.auto-start-journal} is not a singleton list.
* @throws com.typesafe.config.ConfigException.Missing if a relevant config value is missing.
* @throws com.typesafe.config.ConfigException.WrongType if a relevant config value has not the expected type.
*/
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/MongoTimestampPersistence.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/MongoTimestampPersistence.java
index 437b374844..62837e33c3 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/MongoTimestampPersistence.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/MongoTimestampPersistence.java
@@ -20,7 +20,7 @@
import javax.annotation.Nullable;
import org.bson.Document;
-import org.eclipse.ditto.internal.utils.akka.streaming.TimestampPersistence;
+import org.eclipse.ditto.internal.utils.pekko.streaming.TimestampPersistence;
import org.eclipse.ditto.internal.utils.persistence.mongo.DittoMongoClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -30,15 +30,15 @@
import com.mongodb.reactivestreams.client.MongoCollection;
import com.mongodb.reactivestreams.client.MongoDatabase;
-import akka.Done;
-import akka.NotUsed;
-import akka.japi.Pair;
-import akka.japi.pf.PFBuilder;
-import akka.stream.Attributes;
-import akka.stream.Materializer;
-import akka.stream.javadsl.BroadcastHub;
-import akka.stream.javadsl.RestartSource;
-import akka.stream.javadsl.Source;
+import org.apache.pekko.Done;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.japi.Pair;
+import org.apache.pekko.japi.pf.PFBuilder;
+import org.apache.pekko.stream.Attributes;
+import org.apache.pekko.stream.Materializer;
+import org.apache.pekko.stream.javadsl.BroadcastHub;
+import org.apache.pekko.stream.javadsl.RestartSource;
+import org.apache.pekko.stream.javadsl.Source;
/**
* MongoDB implementation of {@link TimestampPersistence}.
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/PidWithSeqNr.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/PidWithSeqNr.java
index 01351313ff..d68a8178cf 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/PidWithSeqNr.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/PidWithSeqNr.java
@@ -25,7 +25,7 @@ public final class PidWithSeqNr {
/**
* Creates a pair from {@code String} and {@code long}.
*
- * @param persistenceId the Akka persistence persistenceId.
+ * @param persistenceId the Pekko persistence persistenceId.
* @param sequenceNr the sequence number.
*/
public PidWithSeqNr(final String persistenceId, final long sequenceNr) {
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/SnapshotFilter.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/SnapshotFilter.java
index d1cc891adb..5e65b08f83 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/SnapshotFilter.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/SnapshotFilter.java
@@ -22,7 +22,7 @@
import com.mongodb.client.model.Filters;
-import akka.contrib.persistence.mongodb.SnapshottingFieldNames$;
+import pekko.contrib.persistence.mongodb.SnapshottingFieldNames$;
/**
* A record that hold optional filters for retrieving snapshots from persistence.
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/operations/AbstractPersistenceOperationsActor.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/operations/AbstractPersistenceOperationsActor.java
index 93f1b27f61..6bb2fcdda6 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/operations/AbstractPersistenceOperationsActor.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/operations/AbstractPersistenceOperationsActor.java
@@ -37,21 +37,21 @@
import org.eclipse.ditto.base.model.namespaces.signals.commands.PurgeNamespace;
import org.eclipse.ditto.base.model.namespaces.signals.commands.PurgeNamespaceResponse;
import org.eclipse.ditto.base.model.signals.commands.Command;
-import org.eclipse.ditto.internal.utils.akka.actors.AbstractActorWithShutdownBehavior;
-import org.eclipse.ditto.internal.utils.akka.logging.DittoLoggerFactory;
-import org.eclipse.ditto.internal.utils.akka.logging.ThreadSafeDittoLoggingAdapter;
+import org.eclipse.ditto.internal.utils.pekko.actors.AbstractActorWithShutdownBehavior;
+import org.eclipse.ditto.internal.utils.pekko.logging.DittoLoggerFactory;
+import org.eclipse.ditto.internal.utils.pekko.logging.ThreadSafeDittoLoggingAdapter;
import org.eclipse.ditto.internal.utils.cluster.DistPubSubAccess;
-import akka.Done;
-import akka.actor.ActorRef;
-import akka.actor.CoordinatedShutdown;
-import akka.cluster.pubsub.DistributedPubSubMediator;
-import akka.japi.pf.ReceiveBuilder;
-import akka.pattern.Patterns;
-import akka.stream.KillSwitches;
-import akka.stream.Materializer;
-import akka.stream.SharedKillSwitch;
-import akka.stream.javadsl.Sink;
+import org.apache.pekko.Done;
+import org.apache.pekko.actor.ActorRef;
+import org.apache.pekko.actor.CoordinatedShutdown;
+import org.apache.pekko.cluster.pubsub.DistributedPubSubMediator;
+import org.apache.pekko.japi.pf.ReceiveBuilder;
+import org.apache.pekko.pattern.Patterns;
+import org.apache.pekko.stream.KillSwitches;
+import org.apache.pekko.stream.Materializer;
+import org.apache.pekko.stream.SharedKillSwitch;
+import org.apache.pekko.stream.javadsl.Sink;
/**
* Superclass of actors operating on the persistence at the level of namespaces.
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/operations/EntityPersistenceOperations.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/operations/EntityPersistenceOperations.java
index f9f8b7f26f..ca2f5828a9 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/operations/EntityPersistenceOperations.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/operations/EntityPersistenceOperations.java
@@ -17,8 +17,8 @@
import org.eclipse.ditto.base.model.entity.id.EntityId;
-import akka.NotUsed;
-import akka.stream.javadsl.Source;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.stream.javadsl.Source;
/**
* Persistence ops on entities.
diff --git a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/operations/NamespacePersistenceOperations.java b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/operations/NamespacePersistenceOperations.java
index 1006e45b63..18ef5489b2 100644
--- a/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/operations/NamespacePersistenceOperations.java
+++ b/internal/utils/persistence/src/main/java/org/eclipse/ditto/internal/utils/persistence/operations/NamespacePersistenceOperations.java
@@ -14,8 +14,8 @@
import java.util.List;
-import akka.NotUsed;
-import akka.stream.javadsl.Source;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.stream.javadsl.Source;
/**
* Persistence operations on namespaces.
diff --git a/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/DefaultPersistenceStreamingActorTest.java b/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/DefaultPersistenceStreamingActorTest.java
index d9a4cc6cbf..0331176de3 100644
--- a/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/DefaultPersistenceStreamingActorTest.java
+++ b/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/DefaultPersistenceStreamingActorTest.java
@@ -38,14 +38,14 @@
import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;
-import akka.NotUsed;
-import akka.actor.ActorRef;
-import akka.actor.ActorSystem;
-import akka.actor.Props;
-import akka.stream.SourceRef;
-import akka.stream.javadsl.Source;
-import akka.stream.testkit.javadsl.TestSink;
-import akka.testkit.javadsl.TestKit;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.actor.ActorRef;
+import org.apache.pekko.actor.ActorSystem;
+import org.apache.pekko.actor.Props;
+import org.apache.pekko.stream.SourceRef;
+import org.apache.pekko.stream.javadsl.Source;
+import org.apache.pekko.stream.testkit.javadsl.TestSink;
+import org.apache.pekko.testkit.javadsl.TestKit;
/**
* Test for {@link DefaultPersistenceStreamingActor}.
@@ -59,7 +59,7 @@ public final class DefaultPersistenceStreamingActorTest {
@BeforeClass
public static void initActorSystem() {
final Config config = ConfigFactory.load("test");
- actorSystem = ActorSystem.create("AkkaTestSystem", config);
+ actorSystem = ActorSystem.create("PekkoTestSystem", config);
}
@AfterClass
diff --git a/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/SnapshotStreamingActorTest.java b/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/SnapshotStreamingActorTest.java
index 2b4da6e8e9..eaffb0ac00 100644
--- a/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/SnapshotStreamingActorTest.java
+++ b/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/SnapshotStreamingActorTest.java
@@ -36,17 +36,17 @@
import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;
-import akka.Done;
-import akka.NotUsed;
-import akka.actor.ActorRef;
-import akka.actor.ActorSystem;
-import akka.actor.Props;
-import akka.cluster.pubsub.DistributedPubSubMediator;
-import akka.stream.SourceRef;
-import akka.stream.javadsl.Sink;
-import akka.stream.javadsl.Source;
-import akka.testkit.TestProbe;
-import akka.testkit.javadsl.TestKit;
+import org.apache.pekko.Done;
+import org.apache.pekko.NotUsed;
+import org.apache.pekko.actor.ActorRef;
+import org.apache.pekko.actor.ActorSystem;
+import org.apache.pekko.actor.Props;
+import org.apache.pekko.cluster.pubsub.DistributedPubSubMediator;
+import org.apache.pekko.stream.SourceRef;
+import org.apache.pekko.stream.javadsl.Sink;
+import org.apache.pekko.stream.javadsl.Source;
+import org.apache.pekko.testkit.TestProbe;
+import org.apache.pekko.testkit.javadsl.TestKit;
/**
* Test for {@link SnapshotStreamingActor}.
@@ -62,7 +62,7 @@ public final class SnapshotStreamingActorTest {
@Before
public void initActorSystem() {
final Config config = ConfigFactory.load("test");
- actorSystem = ActorSystem.create("AkkaTestSystem", config);
+ actorSystem = ActorSystem.create("PekkoTestSystem", config);
mockClient = Mockito.mock(DittoMongoClient.class);
mockReadJournal = Mockito.mock(MongoReadJournal.class);
pubSubMediatorTestProbe = TestProbe.apply("pubSubMediator", actorSystem);
diff --git a/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/assertions/MongoIndexAssertions.java b/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/assertions/MongoIndexAssertions.java
index 32b707a7d2..f3c48862bc 100644
--- a/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/assertions/MongoIndexAssertions.java
+++ b/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/assertions/MongoIndexAssertions.java
@@ -27,8 +27,8 @@
import com.mongodb.reactivestreams.client.MongoDatabase;
-import akka.stream.Materializer;
-import akka.stream.javadsl.Sink;
+import org.apache.pekko.stream.Materializer;
+import org.apache.pekko.stream.javadsl.Sink;
/**
* Assertion methods for Mongo indices.
@@ -45,7 +45,7 @@ public class MongoIndexAssertions {
* "_id").
*
* @param db the Mongo database
- * @param materializer the materializer for the akka actor system.
+ * @param materializer the materializer for the pekko actor system.
* @param expectedIndices the expected indices
* @see #assertIndices(MongoDatabase, String, Materializer, Collection, boolean)
*/
@@ -58,7 +58,7 @@ public static void assertIndices(final MongoDatabase db, final String collection
* Asserts that the specified Mongo collection contains the expected indices.
*
* @param db the Mongo database
- * @param materializer the materializer for the akka actor system.
+ * @param materializer the materializer for the pekko actor system.
* @param expectedIndices the expected indices
* @param ignoreDefaultIndex defines whether the default index (on field "_id") should be excluded from the
* comparison
diff --git a/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/indices/IndexInitializerIT.java b/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/indices/IndexInitializerIT.java
index d499f22b7c..c311cb2a2c 100644
--- a/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/indices/IndexInitializerIT.java
+++ b/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/indices/IndexInitializerIT.java
@@ -36,13 +36,13 @@
import com.mongodb.MongoCommandException;
-import akka.Done;
-import akka.actor.ActorSystem;
-import akka.stream.Materializer;
-import akka.stream.SystemMaterializer;
-import akka.stream.javadsl.Sink;
-import akka.stream.javadsl.Source;
-import akka.testkit.javadsl.TestKit;
+import org.apache.pekko.Done;
+import org.apache.pekko.actor.ActorSystem;
+import org.apache.pekko.stream.Materializer;
+import org.apache.pekko.stream.SystemMaterializer;
+import org.apache.pekko.stream.javadsl.Sink;
+import org.apache.pekko.stream.javadsl.Source;
+import org.apache.pekko.testkit.javadsl.TestKit;
/**
* MongoDB integration test for {@link IndexInitializer}.
@@ -96,7 +96,7 @@ public final class IndexInitializerIT {
@Before
public void before() {
- system = ActorSystem.create("AkkaTestSystem");
+ system = ActorSystem.create("PekkoTestSystem");
materializer = SystemMaterializer.get(system).materializer();
requireNonNull(MONGO_RESOURCE);
diff --git a/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/indices/IndexInitializerTest.java b/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/indices/IndexInitializerTest.java
index 7c5a166ca6..1618984de1 100644
--- a/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/indices/IndexInitializerTest.java
+++ b/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/indices/IndexInitializerTest.java
@@ -18,7 +18,7 @@
import org.junit.Test;
-import akka.stream.Materializer;
+import org.apache.pekko.stream.Materializer;
/**
* Unit test for {@link IndexInitializer}.
diff --git a/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/eventsource/MongoEventSourceITAssertions.java b/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/eventsource/MongoEventSourceITAssertions.java
index f6ffc6bb4c..4ad1468bbb 100644
--- a/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/eventsource/MongoEventSourceITAssertions.java
+++ b/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/ops/eventsource/MongoEventSourceITAssertions.java
@@ -30,7 +30,7 @@
import org.eclipse.ditto.base.model.headers.DittoHeaders;
import org.eclipse.ditto.base.model.namespaces.signals.commands.PurgeNamespace;
import org.eclipse.ditto.base.model.namespaces.signals.commands.PurgeNamespaceResponse;
-import org.eclipse.ditto.internal.utils.akka.ActorSystemResource;
+import org.eclipse.ditto.internal.utils.pekko.ActorSystemResource;
import org.eclipse.ditto.internal.utils.config.raw.RawConfigSupplier;
import org.eclipse.ditto.internal.utils.persistence.mongo.config.DefaultMongoDbConfig;
import org.eclipse.ditto.internal.utils.persistence.mongo.config.MongoDbConfig;
@@ -44,11 +44,11 @@
import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;
-import akka.actor.ActorRef;
-import akka.actor.ActorSystem;
-import akka.actor.PoisonPill;
-import akka.cluster.pubsub.DistributedPubSub;
-import akka.testkit.javadsl.TestKit;
+import org.apache.pekko.actor.ActorRef;
+import org.apache.pekko.actor.ActorSystem;
+import org.apache.pekko.actor.PoisonPill;
+import org.apache.pekko.cluster.pubsub.DistributedPubSub;
+import org.apache.pekko.testkit.javadsl.TestKit;
/**
* Tests subclasses of {@link org.eclipse.ditto.internal.utils.persistence.operations.AbstractPersistenceOperationsActor} which provide purging by namespace on a event source
@@ -115,7 +115,7 @@ protected final List getSupportedPrefixes() {
* Start an entity's persistence actor.
*
* @param system the actor system.
- * @param pubSubMediator Akka pub-sub mediator.
+ * @param pubSubMediator Pekko pub-sub mediator.
* @param id ID of the entity.
* @return reference to the entity actor.
*/
@@ -125,7 +125,7 @@ protected final List getSupportedPrefixes() {
* Starts the NamespaceOps actor.
*
* @param actorSystem the actor system.
- * @param pubSubMediator Akka pub-sub mediator.
+ * @param pubSubMediator Pekko pub-sub mediator.
* @param config configuration with info about event journal, snapshot store, metadata and database.
* @return reference of the NamespaceOps actor.
*/
@@ -175,20 +175,20 @@ protected final List getSupportedPrefixes() {
protected Config getEventSourcingConfiguration() {
// - do not log dead letters (i.e., events for which there is no subscriber)
// - bind to random available port
- // - do not attempt to join an Akka cluster
+ // - do not attempt to join an Pekko cluster
// - do not shutdown jvm on exit (breaks unit tests)
// - make Mongo URI known to the persistence plugin and to the NamespaceOps actor
- final String testConfig = "akka.log-dead-letters=0\n" +
- "akka.persistence.journal-plugin-fallback.circuit-breaker.call-timeout=30s\n" +
- "akka.coordinated-shutdown.terminate-actor-system=off\n" +
- "akka.coordinated-shutdown.run-by-actor-system-terminate=off\n" +
- "akka-contrib-mongodb-persistence-policies-journal.circuit-breaker.call-timeout=30s\n" +
- "akka-contrib-mongodb-persistence-things-journal.circuit-breaker.call-timeout=30s\n" +
- "akka.remote.artery.bind.port=0\n" +
- "akka.cluster.seed-nodes=[]\n" +
- "akka.coordinated-shutdown.exit-jvm=off\n" +
+ final String testConfig = "pekko.log-dead-letters=0\n" +
+ "pekko.persistence.journal-plugin-fallback.circuit-breaker.call-timeout=30s\n" +
+ "pekko.coordinated-shutdown.terminate-actor-system=off\n" +
+ "pekko.coordinated-shutdown.run-by-actor-system-terminate=off\n" +
+ "pekko-contrib-mongodb-persistence-policies-journal.circuit-breaker.call-timeout=30s\n" +
+ "pekko-contrib-mongodb-persistence-things-journal.circuit-breaker.call-timeout=30s\n" +
+ "pekko.remote.artery.bind.port=0\n" +
+ "pekko.cluster.seed-nodes=[]\n" +
+ "pekko.coordinated-shutdown.exit-jvm=off\n" +
"ditto.things.log-incoming-messages=true\n" +
- "akka.contrib.persistence.mongodb.mongo.mongouri=\"" + mongoDbUri + "\"\n";
+ "pekko.contrib.persistence.mongodb.mongo.mongouri=\"" + mongoDbUri + "\"\n";
// load the service config for info about event journal, snapshot store and metadata
return ConfigFactory.parseString(testConfig).withFallback(RawConfigSupplier.of(getServiceName()).get());
diff --git a/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/MongoReadJournalIT.java b/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/MongoReadJournalIT.java
index eff62e150e..addaaf81c0 100644
--- a/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/MongoReadJournalIT.java
+++ b/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/MongoReadJournalIT.java
@@ -45,16 +45,16 @@
import com.typesafe.config.ConfigFactory;
import com.typesafe.config.ConfigValueFactory;
-import akka.actor.ActorSystem;
-import akka.stream.Materializer;
-import akka.stream.SystemMaterializer;
-import akka.stream.javadsl.Sink;
-import akka.stream.javadsl.Source;
-import akka.testkit.javadsl.TestKit;
+import org.apache.pekko.actor.ActorSystem;
+import org.apache.pekko.stream.Materializer;
+import org.apache.pekko.stream.SystemMaterializer;
+import org.apache.pekko.stream.javadsl.Sink;
+import org.apache.pekko.stream.javadsl.Source;
+import org.apache.pekko.testkit.javadsl.TestKit;
/**
* Tests {@link MongoReadJournal}.
- * CAUTION: Do not use Akka streams testkit; it does not work for Source.fromPublisher against reactive-streams client.
+ * CAUTION: Do not use Pekko streams testkit; it does not work for Source.fromPublisher against reactive-streams client.
*/
@RunWith(Parameterized.class)
public final class MongoReadJournalIT {
@@ -105,8 +105,8 @@ public void setUp() {
final String mongoUri =
String.format("mongodb://%s:%d/%s", MONGO_RESOURCE.getBindIp(), MONGO_RESOURCE.getPort(), MONGO_DB);
final Config config = ConfigFactory.load("mongo-read-journal-test")
- .withValue("akka.contrib.persistence.mongodb.mongo.mongouri", ConfigValueFactory.fromAnyRef(mongoUri));
- actorSystem = ActorSystem.create("AkkaTestSystem", config);
+ .withValue("pekko.contrib.persistence.mongodb.mongo.mongouri", ConfigValueFactory.fromAnyRef(mongoUri));
+ actorSystem = ActorSystem.create("PekkoTestSystem", config);
materializer = SystemMaterializer.get(actorSystem).materializer();
readJournal = MongoReadJournal.newInstance(config, mongoClient, actorSystem);
}
diff --git a/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/MongoTimestampPersistenceIT.java b/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/MongoTimestampPersistenceIT.java
index 64fe393c3e..e31e12e68a 100644
--- a/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/MongoTimestampPersistenceIT.java
+++ b/internal/utils/persistence/src/test/java/org/eclipse/ditto/internal/utils/persistence/mongo/streaming/MongoTimestampPersistenceIT.java
@@ -37,12 +37,12 @@
import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;
-import akka.actor.ActorSystem;
-import akka.stream.Materializer;
-import akka.stream.SystemMaterializer;
-import akka.stream.javadsl.Sink;
-import akka.stream.javadsl.Source;
-import akka.testkit.javadsl.TestKit;
+import org.apache.pekko.actor.ActorSystem;
+import org.apache.pekko.stream.Materializer;
+import org.apache.pekko.stream.SystemMaterializer;
+import org.apache.pekko.stream.javadsl.Sink;
+import org.apache.pekko.stream.javadsl.Source;
+import org.apache.pekko.testkit.javadsl.TestKit;
/**
* Tests {@link MongoTimestampPersistence}.
@@ -83,7 +83,7 @@ public static void stopMongoResource() {
@Before
public void setUp() {
final Config config = ConfigFactory.load("test");
- actorSystem = ActorSystem.create("AkkaTestSystem", config);
+ actorSystem = ActorSystem.create("PekkoTestSystem", config);
materializer = SystemMaterializer.get(actorSystem).materializer();
syncPersistence = MongoTimestampPersistence.initializedInstance(KNOWN_COLLECTION, mongoClient, materializer);
}
diff --git a/internal/utils/persistence/src/test/resources/logback-test.xml b/internal/utils/persistence/src/test/resources/logback-test.xml
index bb7c75a0cc..01dc8d2353 100644
--- a/internal/utils/persistence/src/test/resources/logback-test.xml
+++ b/internal/utils/persistence/src/test/resources/logback-test.xml
@@ -5,14 +5,14 @@
- %date{ISO8601} %-5level [%X{x-correlation-id}] %logger{20} %X{akkaSource} - %msg%n
+ %date{ISO8601} %-5level [%X{x-correlation-id}] %logger{20} %X{pekkoSource} - %msg%n
System.err
- %date{ISO8601} %-5level [%X{x-correlation-id}] %logger{20} %X{akkaSource} - %msg%n
+ %date{ISO8601} %-5level [%X{x-correlation-id}] %logger{20} %X{pekkoSource} - %msg%n
ERROR
diff --git a/internal/utils/persistence/src/test/resources/mongo-read-journal-test.conf b/internal/utils/persistence/src/test/resources/mongo-read-journal-test.conf
index 1905bbf9f7..07166c7027 100644
--- a/internal/utils/persistence/src/test/resources/mongo-read-journal-test.conf
+++ b/internal/utils/persistence/src/test/resources/mongo-read-journal-test.conf
@@ -1,20 +1,20 @@
// mongo URI set in test
ditto = {}
-akka.contrib.persistence.mongodb.mongo.mongouri = null
+pekko.contrib.persistence.mongodb.mongo.mongouri = null
-akka {
+pekko {
persistence {
journal.auto-start-journals = [
- "akka-contrib-mongodb-persistence-test-journal"
+ "pekko-contrib-mongodb-persistence-test-journal"
]
snapshot-store.auto-start-snapshot-stores = [
- "akka-contrib-mongodb-persistence-test-snapshots"
+ "pekko-contrib-mongodb-persistence-test-snapshots"
]
}
}
-akka-contrib-mongodb-persistence-test-journal {
- class = "akka.contrib.persistence.mongodb.MongoJournal"
+pekko-contrib-mongodb-persistence-test-journal {
+ class = "pekko.contrib.persistence.mongodb.MongoJournal"
ask-timeout = 10s
@@ -32,8 +32,8 @@ akka-contrib-mongodb-persistence-test-journal {
}
}
-akka-contrib-mongodb-persistence-test-journal-read {
- class = "akka.contrib.persistence.mongodb.MongoReadJournal"
+pekko-contrib-mongodb-persistence-test-journal-read {
+ class = "pekko.contrib.persistence.mongodb.MongoReadJournal"
overrides {
journal-collection = "test_journal"
@@ -43,8 +43,8 @@ akka-contrib-mongodb-persistence-test-journal-read {
}
}
-akka-contrib-mongodb-persistence-test-snapshots {
- class = "akka.contrib.persistence.mongodb.MongoSnapshots"
+pekko-contrib-mongodb-persistence-test-snapshots {
+ class = "pekko.contrib.persistence.mongodb.MongoSnapshots"
ask-timeout = 10s
diff --git a/internal/utils/persistence/src/test/resources/test.conf b/internal/utils/persistence/src/test/resources/test.conf
index cd714bab1a..13b4416e86 100644
--- a/internal/utils/persistence/src/test/resources/test.conf
+++ b/internal/utils/persistence/src/test/resources/test.conf
@@ -20,10 +20,10 @@ ditto {
}
}
-akka {
- loggers = ["akka.event.slf4j.Slf4jLogger"]
+pekko {
+ loggers = ["org.apache.pekko.event.slf4j.Slf4jLogger"]
loglevel = "WARNING"
- logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
+ logging-filter = "org.apache.pekko.event.slf4j.Slf4jLoggingFilter"
# for log messages during the actor system is starting up and shutting down:
stdout-loglevel = "WARNING"
@@ -35,7 +35,7 @@ akka {
coordinated-shutdown.run-by-actor-system-terminate = off
actor {
- provider = "akka.cluster.ClusterActorRefProvider"
+ provider = "org.apache.pekko.cluster.ClusterActorRefProvider"
enable-additional-serialization-bindings = on
# this is only intended for testing.
@@ -46,7 +46,7 @@ akka {
lifecycle = on
}
- guardian-supervisor-strategy = "akka.actor.StoppingSupervisorStrategy"
+ guardian-supervisor-strategy = "org.apache.pekko.actor.StoppingSupervisorStrategy"
deployment {
}
@@ -76,7 +76,7 @@ akka {
cluster {
metrics.enabled = off
- seed-nodes = ["akka://AkkaTestSystem@"${akka.remote.artery.canonical.hostname}":"${akka.remote.artery.canonical.port}]
+ seed-nodes = ["pekko://PekkoTestSystem@"${pekko.remote.artery.canonical.hostname}":"${pekko.remote.artery.canonical.port}]
roles = [
]
@@ -99,22 +99,22 @@ akka {
default-timeout = 5s
calling-thread-dispatcher {
- type = akka.testkit.CallingThreadDispatcherConfigurator
+ type = org.apache.pekko.testkit.CallingThreadDispatcherConfigurator
}
}
persistence {
journal.auto-start-journals = [
- "akka-contrib-mongodb-persistence-test-journal"
+ "pekko-contrib-mongodb-persistence-test-journal"
]
snapshot-store.auto-start-snapshot-stores = [
- "akka-contrib-mongodb-persistence-test-snapshots"
+ "pekko-contrib-mongodb-persistence-test-snapshots"
]
}
}
-akka-contrib-mongodb-persistence-test-journal {
- class = "akka.persistence.inmemory.journal.InMemoryAsyncWriteJournal"
+pekko-contrib-mongodb-persistence-test-journal {
+ class = "org.apache.pekko.persistence.inmemory.journal.InMemoryAsyncWriteJournal"
ask-timeout = 10s
@@ -132,8 +132,8 @@ akka-contrib-mongodb-persistence-test-journal {
}
}
-akka-contrib-mongodb-persistence-test-journal-read {
- class = "akka.contrib.persistence.mongodb.MongoReadJournal"
+pekko-contrib-mongodb-persistence-test-journal-read {
+ class = "pekko.contrib.persistence.mongodb.MongoReadJournal"
overrides {
journal-collection = "test_journal"
@@ -143,8 +143,8 @@ akka-contrib-mongodb-persistence-test-journal-read {
}
}
-akka-contrib-mongodb-persistence-test-snapshots {
- class = "akka.persistence.inmemory.snapshot.InMemorySnapshotStore"
+pekko-contrib-mongodb-persistence-test-snapshots {
+ class = "org.apache.pekko.persistence.inmemory.snapshot.InMemorySnapshotStore"
ask-timeout = 10s
}
diff --git a/internal/utils/persistent-actors/pom.xml b/internal/utils/persistent-actors/pom.xml
index add1be551b..6483935dee 100644
--- a/internal/utils/persistent-actors/pom.xml
+++ b/internal/utils/persistent-actors/pom.xml
@@ -44,7 +44,7 @@
org.eclipse.ditto
- ditto-internal-utils-akka
+ ditto-internal-utils-pekko
org.eclipse.ditto
@@ -61,12 +61,12 @@
- com.typesafe.akka
- akka-actor_${scala.version}
+ org.apache.pekko
+ pekko-actor_${scala.version}
- com.typesafe.akka
- akka-persistence_${scala.version}
+ org.apache.pekko
+ pekko-persistence_${scala.version}
@@ -76,8 +76,8 @@
test
- com.typesafe.akka
- akka-stream-testkit_${scala.version}
+ org.apache.pekko
+ pekko-stream-testkit_${scala.version}
test
@@ -86,8 +86,8 @@
test
- com.typesafe.akka
- akka-slf4j_${scala.version}
+ org.apache.pekko
+ pekko-slf4j_${scala.version}
test