com.github.j5ik2o.akka.persistence.dynamodb.query.scaladsl
DynamoDBReadJournal
Companion object DynamoDBReadJournal
class DynamoDBReadJournal extends ReadJournal with CurrentPersistenceIdsQuery with PersistenceIdsQuery with CurrentEventsByPersistenceIdQuery with EventsByPersistenceIdQuery with CurrentEventsByTagQuery with EventsByTagQuery
- Alphabetic
- By Inheritance
- DynamoDBReadJournal
- EventsByTagQuery
- CurrentEventsByTagQuery
- EventsByPersistenceIdQuery
- CurrentEventsByPersistenceIdQuery
- PersistenceIdsQuery
- CurrentPersistenceIdsQuery
- ReadJournal
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DynamoDBReadJournal(config: Config, configPath: String)(implicit system: ExtendedActorSystem)
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()
- def currentEventsByPersistenceId(persistenceId: String, fromSequenceNr: Long, toSequenceNr: Long): Source[EventEnvelope, NotUsed]
- Definition Classes
- DynamoDBReadJournal → CurrentEventsByPersistenceIdQuery
- def currentEventsByTag(tag: String, offset: Long): Source[EventEnvelope, NotUsed]
- def currentEventsByTag(tag: String, offset: Offset): Source[EventEnvelope, NotUsed]
Same type of query as EventsByTagQuery#eventsByTag but the event stream is completed immediately when it reaches the end of the "result set".
Same type of query as EventsByTagQuery#eventsByTag but the event stream is completed immediately when it reaches the end of the "result set". Events that are stored after the query is completed are not included in the event stream.
akka-persistence-jdbc has implemented this feature by using a LIKE %tag% query on the tags column. A consequence of this is that tag names must be chosen wisely: for example when querying the tag
User, events with the tagUserEmailwill also be returned (since User is a substring of UserEmail).The returned event stream is ordered by
offset.- Definition Classes
- DynamoDBReadJournal → CurrentEventsByTagQuery
- def currentPersistenceIds(): Source[String, NotUsed]
- Definition Classes
- DynamoDBReadJournal → CurrentPersistenceIdsQuery
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def eventsByPersistenceId(persistenceId: String, fromSequenceNr: Long, toSequenceNr: Long): Source[EventEnvelope, NotUsed]
- Definition Classes
- DynamoDBReadJournal → EventsByPersistenceIdQuery
- def eventsByTag(tag: String, offset: Long): Source[EventEnvelope, NotUsed]
- def eventsByTag(tag: String, offset: Offset): Source[EventEnvelope, NotUsed]
Query events that have a specific tag.
Query events that have a specific tag.
akka-persistence-jdbc has implemented this feature by using a LIKE %tag% query on the tags column. A consequence of this is that tag names must be chosen wisely: for example when querying the tag
User, events with the tagUserEmailwill also be returned (since User is a substring of UserEmail).The consumer can keep track of its current position in the event stream by storing the
offsetand restart the query from a givenoffsetafter a crash/restart.For akka-persistence-jdbc the
offsetcorresponds to theorderingcolumn in the Journal table. Theorderingis a sequential id number that uniquely identifies the position of each event within the event stream.The returned event stream is ordered by
offset.The stream is not completed when it reaches the end of the currently stored events, but it continues to push new events when new events are persisted. Corresponding query that is completed when it reaches the end of the currently stored events is provided by CurrentEventsByTagQuery#currentEventsByTag.
- Definition Classes
- DynamoDBReadJournal → EventsByTagQuery
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- 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()
- def persistenceIds(): Source[String, NotUsed]
- Definition Classes
- DynamoDBReadJournal → PersistenceIdsQuery
- 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()