This is an automated email from the ASF dual-hosted git repository.
He-Pin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko.git
The following commit(s) were added to refs/heads/main by this push:
new eb782e3731 docs: add the Scala tab to the reliable delivery sharding
init example (#3593)
eb782e3731 is described below
commit eb782e3731ce2f837634bce7d2106e41571ed810
Author: PJ Fanning <[email protected]>
AuthorDate: Fri Oct 9 05:22:46 2026 +0100
docs: add the Scala tab to the reliable delivery sharding init example
(#3593)
Motivation:
In typed/reliable-delivery.md the example that initializes sharding
with the ShardingConsumerController and ShardingProducerController
only has a Java tab, although the Scala ShardingDocExample has the same
#init snippet.
Modification:
Add the Scala tab using the existing #init snippet in
cluster-sharding-typed/src/test/scala/docs/delivery/ShardingDocExample.scala.
Result:
Scala readers see the sharding init example too.
Tests:
- Not run - docs only
References:
None - found during a review of the docs
---
docs/src/main/paradox/typed/reliable-delivery.md | 3 +++
1 file changed, 3 insertions(+)
diff --git a/docs/src/main/paradox/typed/reliable-delivery.md
b/docs/src/main/paradox/typed/reliable-delivery.md
index 3fb2050620..cc75138949 100644
--- a/docs/src/main/paradox/typed/reliable-delivery.md
+++ b/docs/src/main/paradox/typed/reliable-delivery.md
@@ -333,6 +333,9 @@ Note how the `ActorRef` in the `Start` messages are
constructed as message adapt
Those are initialized with sharding like this (from the guardian):
+Scala
+: @@snip
[ShardingDocExample.scala](/cluster-sharding-typed/src/test/scala/docs/delivery/ShardingDocExample.scala)
{ #init }
+
Java
: @@snip
[ShardingDocExample.java](/cluster-sharding-typed/src/test/java/jdocs/delivery/ShardingDocExample.java)
{ #init }
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]