Used to configure a specific Akka.Persistence.Journal instance, primarily to support Event Adapters.
public static AkkaConfigurationBuilder WithJournal(
this AkkaConfigurationBuilder builder,
string journalId,
Action<AkkaPersistenceJournalBuilder> journalBuilder);
-
journalId
stringThe id of the journal. i.e. if you want to apply this adapter to the
akka.persistence.journal.sql
journal, just use"sql"
. -
journalBuilder
Action<AkkaPersistenceJournalBuilder>Configuration method for configuring the journal.
Add an in-memory journal to the ActorSystem
, usually for testing purposes.
public static AkkaConfigurationBuilder WithInMemoryJournal(
this AkkaConfigurationBuilder builder);
public static AkkaConfigurationBuilder WithInMemoryJournal(
this AkkaConfigurationBuilder builder,
Action<AkkaPersistenceJournalBuilder> journalBuilder);
-
journalBuilder
Action<AkkaPersistenceJournalBuilder>Configuration method for configuring the journal.
Add an in-memory snapshot store to the ActorSystem
, usually for testing purposes.
public static AkkaConfigurationBuilder WithInMemorySnapshotStore(
this AkkaConfigurationBuilder builder);