trait FallbackStore[Breadcrumb <: AnyRef] extends AnyRef
INTERNAL API API MAY CHANGE
Plugin API for a fallback store for events and snapshots. The journal and snapshot store implementations may, if configured to use an implementation of this API, use this fallback store to store events (resp. snapshots) while only storing a reference (aka "breadcrumb") returned by the plugin in the journal (resp. snapshot store). The event or snapshot can then be retrieved by providing the breadcrumb.
Implementations must have a constructor taking an actor system, a Config object, and the config path
- Breadcrumb
the type of breadcrumb emitted and aceepted by this store: this type should have an Akka serializer registered and may not be generic
- Annotations
- @ApiMayChange() @InternalApi()
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- FallbackStore
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def breadcumbClass: Class[Breadcrumb]
- abstract def loadEvent(breadcrumb: Breadcrumb, persistenceId: String, seqNr: Long, includePayload: Boolean): Future[Option[EventFromFallback]]
- abstract def loadSnapshot(breadcrumb: Breadcrumb, persistenceId: String, seqNr: Long): Future[Option[SnapshotFromFallback]]
- abstract def saveEvent(persistenceId: String, seqNr: Long, serId: Int, serManifest: String, payload: Array[Byte]): Future[Breadcrumb]
- abstract def saveSnapshot(persistenceId: String, seqNr: Long, writeTimestamp: Instant, eventTimestamp: Instant, serId: Int, serManifest: String, payload: Array[Byte], tags: Set[String], meta: Option[((Int, String), Array[Byte])]): Future[Breadcrumb]
- abstract def toBreadcrumb(maybeBreadcrumb: AnyRef): Option[Breadcrumb]
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()