Class

akka.persistence.dynamodb.journal

DynamoDBJournal

Related Doc: package journal

Permalink

class DynamoDBJournal extends AsyncWriteJournal with DynamoDBRecovery with DynamoDBRequests with ActorLogging

Linear Supertypes
ActorLogging, DynamoDBRequests, DynamoDBRecovery, AsyncWriteJournal, AsyncRecovery, WriteJournalBase, Actor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DynamoDBJournal
  2. ActorLogging
  3. DynamoDBRequests
  4. DynamoDBRecovery
  5. AsyncWriteJournal
  6. AsyncRecovery
  7. WriteJournalBase
  8. Actor
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DynamoDBJournal(config: Config)

    Permalink

Type Members

  1. type Receive = PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    Actor

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def aroundPostRestart(reason: Throwable): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  5. def aroundPostStop(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  6. def aroundPreRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  7. def aroundPreStart(): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  8. def aroundReceive(receive: actor.Actor.Receive, msg: Any): Unit

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def asyncDeleteMessagesTo(persistenceId: String, toSequenceNr: Long): Future[Unit]

    Permalink

    Delete messages up to a given sequence number.

    Delete messages up to a given sequence number. The range to which this applies first capped by the lowest and highest sequence number for this persistenceId since DynamoDB requires individual deletes to be issued for every single event. The procedure is to first update the lowest sequence number to the new value and then delete the now unreplayable events—this is desirable because in the other order a replay may see partially deleted history.

    Failures during purging are only logged and do not contribute to the call’s result.

    TODO in principle replays should be inhibited while the purge is ongoing

    Definition Classes
    DynamoDBJournal → AsyncWriteJournal
  11. def asyncReadHighestSequenceNr(persistenceId: String, fromSequenceNr: Long): Future[Long]

    Permalink
    Definition Classes
    DynamoDBJournal → AsyncRecovery
  12. def asyncReplayMessages(persistenceId: String, fromSequenceNr: Long, toSequenceNr: Long, max: Long)(replayCallback: (PersistentRepr) ⇒ Unit): Future[Unit]

    Permalink
    Definition Classes
    DynamoDBRecovery → AsyncRecovery
  13. def asyncWriteMessages(messages: Seq[AtomicWrite]): Future[Seq[Try[Unit]]]

    Permalink
    Definition Classes
    DynamoDBJournal → AsyncWriteJournal
  14. def batchGetReq(items: Map[String, KeysAndAttributes]): BatchGetItemRequest

    Permalink
    Definition Classes
    DynamoDBRecovery
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. implicit val context: ActorContext

    Permalink
    Definition Classes
    Actor
  17. def deleteMessages(persistenceId: String, start: Long, end: Long): Future[Done]

    Permalink
    Definition Classes
    DynamoDBRequests
  18. val dynamo: DynamoDBHelper

    Permalink
  19. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  21. def eventQuery(persistenceId: String, sequenceNr: Long): QueryRequest

    Permalink
    Definition Classes
    DynamoDBRecovery
  22. val extension: Persistence

    Permalink
  23. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def getRemainingQueryItems(request: QueryRequest, result: QueryResult): Future[QueryResult]

    Permalink
    Definition Classes
    DynamoDBRecovery
  26. def getReplayBatch(persistenceId: String, seqNrs: Seq[Long]): Future[ReplayBatch]

    Permalink
    Definition Classes
    DynamoDBRecovery
  27. def getUnprocessedItems(result: BatchGetItemResult, retriesRemaining: Int = 10): Future[BatchGetItemResult]

    Permalink
    Definition Classes
    DynamoDBRecovery
  28. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  29. def highSeqKey(persistenceId: String, shard: Long): Item

    Permalink
  30. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  31. def keyLength(persistenceId: String, sequenceNr: Long): Int

    Permalink
  32. def listAllSeqNr(persistenceId: String): Future[Seq[Long]]

    Permalink
    Definition Classes
    DynamoDBRecovery
  33. def log: LoggingAdapter

    Permalink
    Definition Classes
    ActorLogging
  34. def logFailure[T](desc: String)(f: Future[T]): Future[T]

    Permalink
  35. def lowSeqKey(persistenceId: String, shard: Long): Item

    Permalink
  36. implicit val materializer: ActorMaterializer

    Permalink
  37. def messageKey(persistenceId: String, sequenceNr: Long): Item

    Permalink
  38. def messagePartitionKey(persistenceId: String, sequenceNr: Long): String

    Permalink
  39. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  40. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  41. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  42. val persistence: Persistence

    Permalink
    Definition Classes
    WriteJournalBase
  43. def persistentFromByteBuffer(b: ByteBuffer): PersistentRepr

    Permalink
  44. def persistentToByteBuffer(p: PersistentRepr): ByteBuffer

    Permalink
  45. def postRestart(reason: Throwable): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  46. def postStop(): Unit

    Permalink
    Definition Classes
    DynamoDBJournal → Actor
  47. def preRestart(reason: Throwable, message: Option[Any]): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  48. def preStart(): Unit

    Permalink
    Definition Classes
    Actor
    Annotations
    @throws( classOf[java.lang.Exception] )
  49. def preparePersistentBatch(rb: Seq[PersistentEnvelope]): Seq[AtomicWrite]

    Permalink
    Attributes
    protected
    Definition Classes
    WriteJournalBase
  50. def readAllSequenceNr(persistenceId: String, highest: Boolean): Future[Set[Long]]

    Permalink
    Definition Classes
    DynamoDBRecovery
  51. def readPersistentRepr(item: Map[String, AttributeValue]): PersistentRepr

    Permalink
    Definition Classes
    DynamoDBRecovery
  52. def readSequenceNr(persistenceId: String, highest: Boolean): Future[Long]

    Permalink
    Definition Classes
    DynamoDBRecovery
  53. def readSequenceNrBatches(persistenceId: String, highest: Boolean): Iterator[Future[BatchGetItemResult]]

    Permalink
    Definition Classes
    DynamoDBRecovery
  54. final def receive: PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    AsyncWriteJournal → Actor
  55. def receivePluginInternal: PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    DynamoDBJournal → AsyncWriteJournal
  56. final val receiveWriteJournal: actor.Actor.Receive

    Permalink
    Definition Classes
    AsyncWriteJournal
  57. def removeHS(persistenceId: String): Future[Done]

    Permalink
    Definition Classes
    DynamoDBRequests
  58. def removeLS(persistenceId: String): Future[Done]

    Permalink
    Definition Classes
    DynamoDBRequests
  59. implicit lazy val replayDispatcher: MessageDispatcher

    Permalink
    Definition Classes
    DynamoDBRecovery
  60. implicit final val self: ActorRef

    Permalink
    Definition Classes
    Actor
  61. final def sender(): ActorRef

    Permalink
    Definition Classes
    Actor
  62. val serialization: Serialization

    Permalink
  63. def setHS(persistenceId: String, to: Long): Future[PutItemResult]

    Permalink
    Definition Classes
    DynamoDBRequests
  64. def setLS(persistenceId: String, to: Long): Future[PutItemResult]

    Permalink
    Definition Classes
    DynamoDBRequests
  65. val settings: DynamoDBJournalConfig

    Permalink
  66. def supervisorStrategy: SupervisorStrategy

    Permalink
    Definition Classes
    Actor
  67. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  68. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  69. def unhandled(message: Any): Unit

    Permalink
    Definition Classes
    Actor
  70. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  72. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  73. def writeMessages(atomicWrite: AtomicWrite): Future[Try[Unit]]

    Permalink

    Write all PersistentRepr in the AtomicWrite provided

    Write all PersistentRepr in the AtomicWrite provided

    If there are any errors serializing (preparing the batch writes), then we must return a Future.success(Failure) as the result. This is needed to be compliant with Akka Persistence 2.4

    atomicWrite

    Contains a list of persistentRepr that need to be persisted atomically

    returns

    a successfully completed Future that contains either a Success or Failure

    Definition Classes
    DynamoDBRequests
  74. def writeMessages(writes: Seq[AtomicWrite]): Future[List[Try[Unit]]]

    Permalink

    Write all messages in a sequence of AtomicWrites.

    Write all messages in a sequence of AtomicWrites. Care must be taken to not have concurrent writes happening that touch the highest sequence number. The current implementation is the simplest with this guarantee in that it will run each AtomicWrite in sequence without even batching those that could be batched. The most common case is that there is just one message in total anyway.

    Definition Classes
    DynamoDBRequests

Inherited from ActorLogging

Inherited from DynamoDBRequests

Inherited from DynamoDBRecovery

Inherited from AsyncWriteJournal

Inherited from AsyncRecovery

Inherited from WriteJournalBase

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped