Package

akka.persistence

journal

Permalink

package journal

Content Hierarchy Learn more about scaladoc diagrams
Visibility
  1. Public
  2. All

Type Members

  1. trait AsyncRecovery extends AnyRef

    Permalink

    Asynchronous message replay and sequence number recovery interface.

  2. class AsyncReplayTimeoutException extends AkkaException

    Permalink

    Thrown if replay inactivity exceeds a specified timeout.

    Thrown if replay inactivity exceeds a specified timeout.

    Annotations
    @SerialVersionUID()
  3. trait AsyncWriteJournal extends Actor with WriteJournalBase with AsyncRecovery

    Permalink

    Abstract journal, optimized for asynchronous, non-blocking writes.

  4. sealed trait EmptyEventSeq extends EventSeq

    Permalink
  5. trait EventAdapter extends WriteEventAdapter with ReadEventAdapter

    Permalink

    An EventAdapter is both a WriteEventAdapter and a ReadEventAdapter.

    An EventAdapter is both a WriteEventAdapter and a ReadEventAdapter. Facility to convert from and to specialised data models, as may be required by specialized persistence Journals.

    Typical use cases include (but are not limited to):

    • adding metadata, a.k.a. "tagging" - by wrapping objects into tagged counterparts
    • manually converting to the Journals storage format, such as JSON, BSON or any specialised binary format
    • adapting incoming events in any way before persisting them by the journal
  6. class EventAdapters extends AnyRef

    Permalink

    EventAdapters serves as a per-journal collection of bound event adapters.

  7. sealed abstract class EventSeq extends AnyRef

    Permalink
  8. final case class EventsSeq[E](events: Seq[E]) extends EventSeq with Product with Serializable

    Permalink
  9. abstract class JournalPerfSpec extends JournalSpec

    Permalink

    This spec measures execution times of the basic operations that an akka.persistence.PersistentActor provides, using the provided Journal (plugin).

    This spec measures execution times of the basic operations that an akka.persistence.PersistentActor provides, using the provided Journal (plugin).

    It is *NOT* meant to be a comprehensive benchmark, but rather aims to help plugin developers to easily determine if their plugin's performance is roughly as expected. It also validates the plugin still works under "more messages" scenarios.

    In case your journal plugin needs some kind of setup or teardown, override the beforeAll or afterAll methods (don't forget to call super in your overridden methods).

    For a Java and JUnit consumable version of the TCK please refer to akka.persistence.japi.journal.JavaJournalPerfSpec.

    See also

    akka.persistence.journal.JournalSpec

  10. abstract class JournalSpec extends PluginSpec

    Permalink

    This spec aims to verify custom akka-persistence Journal implementations.

    This spec aims to verify custom akka-persistence Journal implementations. Plugin authors are highly encouraged to include it in their plugin's test suites.

    In case your journal plugin needs some kind of setup or teardown, override the beforeAll or afterAll methods (don't forget to call super in your overridden methods).

    For a Java and JUnit consumable version of the TCK please refer to akka.persistence.japi.journal.JavaJournalSpec.

    See also

    akka.persistence.japi.journal.JavaJournalPerfSpec

    akka.persistence.journal.JournalPerfSpec

  11. trait ReadEventAdapter extends AnyRef

    Permalink

    Facility to convert from and to specialised data models, as may be required by specialized persistence Journals.

    Facility to convert from and to specialised data models, as may be required by specialized persistence Journals.

    Typical use cases include (but are not limited to):

    • extracting events from "envelopes"
    • manually converting to the Journals storage format, such as JSON, BSON or any specialised binary format
    • adapting incoming events from a "data model" to the "domain model"
  12. final case class SingleEventSeq(event: Any) extends EventSeq with Product with Serializable

    Permalink
  13. case class Tagged(payload: Any, tags: Set[String]) extends Product with Serializable

    Permalink

    The journal may support tagging of events that are used by the EventsByTag query and it may support specifying the tags via an akka.persistence.journal.EventAdapter that wraps the events in a Tagged with the given tags.

    The journal may support tagging of events that are used by the EventsByTag query and it may support specifying the tags via an akka.persistence.journal.EventAdapter that wraps the events in a Tagged with the given tags. The journal may support other ways of doing tagging. Please consult the documentation of the specific journal implementation for more information.

    The journal will unwrap the event and store the payload.

  14. trait WriteEventAdapter extends AnyRef

    Permalink

    Facility to convert to specialised data models, as may be required by specialized persistence Journals.

    Facility to convert to specialised data models, as may be required by specialized persistence Journals.

    Typical use cases include (but are not limited to):

    • adding metadata, a.k.a. "tagging" - by wrapping objects into tagged counterparts
    • manually converting to the Journals storage format, such as JSON, BSON or any specialised binary format
    • splitting up large events into sequences of smaller ones

Value Members

  1. object EmptyEventSeq extends EventSeq with EmptyEventSeq

    Permalink
  2. object EventSeq

    Permalink
  3. object IdentityEventAdapter extends EventAdapter with Product with Serializable

    Permalink

    No-op model adapter which passes through the incoming events as-is.

  4. object JournalPerfSpec extends Serializable

    Permalink
  5. object JournalSpec extends Serializable

    Permalink
  6. package japi

    Permalink
  7. package leveldb

    Permalink

Ungrouped