Packages

trait PersistentRepr extends Message

Plugin API: representation of a persistent message in the journal plugin API.

Annotations
@DoNotInherit()
Source
Persistent.scala
See also

akka.persistence.journal.AsyncWriteJournal

akka.persistence.journal.AsyncRecovery

Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PersistentRepr
  2. Message
  3. Serializable
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def deleted: Boolean

    Not used, can always be false.

    Not used, can always be false.

    Not used in new records stored with Akka v2.4, but old records from v2.3 may have this as true if it was a non-permanent delete.

  2. abstract def manifest: String

    Returns the event adapter manifest for the persistent payload (event) if available May be "" if event adapter manifest is not used.

    Returns the event adapter manifest for the persistent payload (event) if available May be "" if event adapter manifest is not used. Note that this is not the same as the manifest of the serialized representation of the payload.

  3. abstract def metadata: Option[Any]
  4. abstract def payload: Any

    This persistent message's payload (the event).

  5. abstract def persistenceId: String

    Persistent id that journals a persistent message

  6. abstract def sender: ActorRef

    Not used, can be null

  7. abstract def sequenceNr: Long

    This persistent message's sequence number.

  8. abstract def timestamp: Long

    The timestamp is the time the event was stored, in milliseconds since midnight, January 1, 1970 UTC (same as System.currentTimeMillis).

    The timestamp is the time the event was stored, in milliseconds since midnight, January 1, 1970 UTC (same as System.currentTimeMillis).

    Value 0 is used if undefined.

  9. abstract def update(sequenceNr: Long = sequenceNr, persistenceId: String = persistenceId, deleted: Boolean = deleted, sender: ActorRef = sender, writerUuid: String = writerUuid): PersistentRepr

    Creates a new copy of this PersistentRepr.

  10. abstract def withManifest(manifest: String): PersistentRepr

    Creates a new persistent message with the specified event adapter manifest.

  11. abstract def withMetadata(metadata: Any): PersistentRepr
  12. abstract def withPayload(payload: Any): PersistentRepr

    Creates a new persistent message with the specified payload (event).

  13. abstract def withTimestamp(newTimestamp: Long): PersistentRepr
  14. abstract def writerUuid: String

    Unique identifier of the writing persistent actor.

    Unique identifier of the writing persistent actor. Used to detect anomalies with overlapping writes from multiple persistent actors, which can result in inconsistent replays.