diff --git a/akka-docs/rst/java/persistence.rst b/akka-docs/rst/java/persistence.rst index b19b241d19..3618ccb16c 100644 --- a/akka-docs/rst/java/persistence.rst +++ b/akka-docs/rst/java/persistence.rst @@ -219,10 +219,10 @@ maximum stash capacity in the mailbox configuration:: Note that the stash capacity is per actor. If you have many persistent actors, e.g. when using cluster sharding, you may need to define a small stash capacity to ensure that the total number of stashed messages in the system -don't consume too much memory. Additionally, The persistent actor defines three strategies to handle failure when the +doesn't consume too much memory. Additionally, the persistent actor defines three strategies to handle failure when the internal stash capacity is exceeded. The default overflow strategy is the ``ThrowOverflowExceptionStrategy``, which -discards the current received message and throws a ``StashOverflowException``, causing actor restart if default -supervision strategy is used. you can override the ``internalStashOverflowStrategy`` method to return +discards the current received message and throws a ``StashOverflowException``, causing actor restart if the default +supervision strategy is used. You can override the ``internalStashOverflowStrategy`` method to return ``DiscardToDeadLetterStrategy`` or ``ReplyToStrategy`` for any "individual" persistent actor, or define the "default" for all persistent actors by providing FQCN, which must be a subclass of ``StashOverflowStrategyConfigurator``, in the persistence configuration:: @@ -233,7 +233,7 @@ persistence configuration:: The ``DiscardToDeadLetterStrategy`` strategy also has a pre-packaged companion configurator ``akka.persistence.DiscardConfigurator``. -You can also query default strategy via the Akka persistence extension singleton:: +You can also query the default strategy via the Akka persistence extension singleton:: Persistence.get(getContext().system()).defaultInternalStashOverflowStrategy(); diff --git a/akka-docs/rst/scala/persistence.rst b/akka-docs/rst/scala/persistence.rst index f2168a9a22..728d68f442 100644 --- a/akka-docs/rst/scala/persistence.rst +++ b/akka-docs/rst/scala/persistence.rst @@ -218,10 +218,10 @@ maximum stash capacity in the mailbox configuration:: Note that the stash capacity is per actor. If you have many persistent actors, e.g. when using cluster sharding, you may need to define a small stash capacity to ensure that the total number of stashed messages in the system -don't consume too much memory. Additionally, The persistent actor defines three strategies to handle failure when the +doesn't consume too much memory. Additionally, the persistent actor defines three strategies to handle failure when the internal stash capacity is exceeded. The default overflow strategy is the ``ThrowOverflowExceptionStrategy``, which -discards the current received message and throws a ``StashOverflowException``, causing actor restart if default -supervision strategy is used. you can override the ``internalStashOverflowStrategy`` method to return +discards the current received message and throws a ``StashOverflowException``, causing actor restart if the default +supervision strategy is used. You can override the ``internalStashOverflowStrategy`` method to return ``DiscardToDeadLetterStrategy`` or ``ReplyToStrategy`` for any "individual" persistent actor, or define the "default" for all persistent actors by providing FQCN, which must be a subclass of ``StashOverflowStrategyConfigurator``, in the persistence configuration:: @@ -232,7 +232,7 @@ persistence configuration:: The ``DiscardToDeadLetterStrategy`` strategy also has a pre-packaged companion configurator ``akka.persistence.DiscardConfigurator``. -You can also query default strategy via the Akka persistence extension singleton:: +You can also query the default strategy via the Akka persistence extension singleton:: Persistence(context.system).defaultInternalStashOverflowStrategy