=per #19221 Eager initialization of persistence plugins
* Initialization is performed during Persistence initialization, so for this to work the persistence extension should be specified under akka.extensions
This commit is contained in:
parent
ae5a7484b4
commit
70130549df
6 changed files with 37 additions and 4 deletions
|
|
@ -787,6 +787,11 @@ Plugin development requires the following imports:
|
|||
|
||||
.. includecode:: code/docs/persistence/LambdaPersistencePluginDocTest.java#plugin-imports
|
||||
|
||||
By default, persistence plugins are started on-demand, as they are used. In some case, however, it might be beneficial
|
||||
to start a certain plugin eagerly. In order to do that, you should first add the ``akka.persistence.Persistence``
|
||||
under the ``akka.extensions`` key. Then, specify the IDs of plugins you wish to start automatically under
|
||||
``akka.persistence.journal.auto-start-journals`` and ``akka.persistence.snapshot-store.auto-start-snapshot-stores``.
|
||||
|
||||
Journal plugin API
|
||||
------------------
|
||||
|
||||
|
|
|
|||
|
|
@ -738,6 +738,11 @@ Plugin development requires the following imports:
|
|||
|
||||
.. includecode:: code/docs/persistence/PersistencePluginDocTest.java#plugin-imports
|
||||
|
||||
By default, persistence plugins are started on-demand, as they are used. In some case, however, it might be beneficial
|
||||
to start a certain plugin eagerly. In order to do that, you should first add the ``akka.persistence.Persistence``
|
||||
under the ``akka.extensions`` key. Then, specify the IDs of plugins you wish to start automatically under
|
||||
``akka.persistence.journal.auto-start-journals`` and ``akka.persistence.snapshot-store.auto-start-snapshot-stores``.
|
||||
|
||||
.. _journal-plugin-api-java:
|
||||
|
||||
Journal plugin API
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue