Class

akka.persistence.cassandra.journal

CassandraJournal

Related Doc: package journal

Permalink

class CassandraJournal extends AsyncWriteJournal with CassandraRecovery with CassandraStatements with NoSerializationVerificationNeeded

Journal implementation of the cassandra plugin. Inheritance is possible but without any guarantees for future source compatibility.

Annotations
@DoNotInherit()
Source
CassandraJournal.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CassandraJournal
  2. NoSerializationVerificationNeeded
  3. CassandraRecovery
  4. TaggedPreparedStatements
  5. CassandraStatements
  6. CassandraTagRecovery
  7. AsyncWriteJournal
  8. AsyncRecovery
  9. WriteJournalBase
  10. Actor
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CassandraJournal(cfg: 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
    Annotations
    @InternalApi()
  5. def aroundPostStop(): Unit

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

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

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

    Permalink
    Attributes
    protected[akka]
    Definition Classes
    Actor
    Annotations
    @InternalApi()
  9. final def asInstanceOf[T0]: T0

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

    Permalink

    Not thread safe.

    Not thread safe. Assumed to only be called from the journal actor. However, unlike asyncWriteMessages it can be called before the previous Future completes

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

    Permalink

    It is assumed that this is only called during a replay and if fromSequenceNr == highest then asyncReplayMessages won't be called.

    It is assumed that this is only called during a replay and if fromSequenceNr == highest then asyncReplayMessages won't be called. In that case the tag progress is updated in here rather than during replay messages.

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

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

    Permalink
    Definition Classes
    CassandraJournal → AsyncWriteJournal
  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. val config: CassandraJournalConfig

    Permalink
  16. implicit val context: ActorContext

    Permalink
    Definition Classes
    Actor
  17. def createTagScanningTable: String

    Permalink
    Definition Classes
    CassandraStatements
  18. def createTagsProgressTable: String

    Permalink
    Definition Classes
    CassandraStatements
  19. implicit val ec: ExecutionContext

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def generateUUID(pr: PersistentRepr): UUID

    Permalink

    UUID generation is deliberately externalized to allow subclasses to customize the time based uuid for special cases.

    UUID generation is deliberately externalized to allow subclasses to customize the time based uuid for special cases. see https://discuss.lightbend.com/t/akka-persistence-cassandra-events-by-tags-bucket-size-based-on-time-vs-burst-load/1411 and make sure you understand the risk of doing this wrong.

    Attributes
    protected
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. val log: LoggingAdapter

    Permalink
    Definition Classes
    CassandraJournalCassandraTagRecovery
  28. implicit val materializer: ActorMaterializer

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

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

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

    Permalink
    Definition Classes
    AnyRef
  32. val persistence: Persistence

    Permalink
    Definition Classes
    WriteJournalBase
  33. def postRestart(reason: Throwable): Unit

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

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

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

    Permalink
    Definition Classes
    CassandraJournal → Actor
  37. def preparePersistentBatch(rb: Seq[PersistentEnvelope]): Seq[AtomicWrite]

    Permalink
    Attributes
    protected
    Definition Classes
    WriteJournalBase
  38. def preparedDeleteMessages: Future[PreparedStatement]

    Permalink
  39. def preparedInsertDeletedTo: Future[PreparedStatement]

    Permalink
  40. def preparedSelectDeletedTo: Option[Future[PreparedStatement]]

    Permalink
  41. def preparedSelectHighestSequenceNr: Future[PreparedStatement]

    Permalink
  42. def preparedSelectMessages: Future[PreparedStatement]

    Permalink
  43. def preparedSelectTagProgress: Future[PreparedStatement]

    Permalink
    Definition Classes
    TaggedPreparedStatements
  44. def preparedSelectTagProgressForPersistenceId: Future[PreparedStatement]

    Permalink
    Definition Classes
    TaggedPreparedStatements
  45. def preparedSelectTagScanningForPersistenceId: Future[PreparedStatement]

    Permalink
    Definition Classes
    TaggedPreparedStatements
  46. def preparedWriteInUse: Future[PreparedStatement]

    Permalink
  47. def preparedWriteMessage: Future[PreparedStatement]

    Permalink
  48. def preparedWriteMessageWithMeta: Future[PreparedStatement]

    Permalink
  49. def preparedWriteTagScanning: Future[PreparedStatement]

    Permalink
    Definition Classes
    TaggedPreparedStatements
  50. def preparedWriteToTagProgress: Future[PreparedStatement]

    Permalink
    Definition Classes
    TaggedPreparedStatements
  51. def preparedWriteToTagViewWithMeta: Future[PreparedStatement]

    Permalink
    Definition Classes
    TaggedPreparedStatements
  52. def preparedWriteToTagViewWithoutMeta: Future[PreparedStatement]

    Permalink
    Definition Classes
    TaggedPreparedStatements
  53. final def receive: PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    AsyncWriteJournal → Actor
  54. def receivePluginInternal: Receive

    Permalink
    Definition Classes
    CassandraJournal → AsyncWriteJournal
  55. final val receiveWriteJournal: actor.Actor.Receive

    Permalink
    Definition Classes
    AsyncWriteJournal
  56. implicit final val self: ActorRef

    Permalink
    Definition Classes
    Actor
  57. def sendWriteFinished(pid: String, writeInProgressForPid: Promise[Done]): Unit

    Permalink
  58. final def sender(): ActorRef

    Permalink
    Definition Classes
    Actor
  59. val serialization: Serialization

    Permalink
  60. val session: CassandraSession

    Permalink
  61. def supervisorStrategy: SupervisorStrategy

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

    Permalink
    Definition Classes
    AnyRef
  63. def tableName: String

    Permalink
    Attributes
    protected
    Definition Classes
    CassandraStatements
  64. val tagWrites: Option[ActorRef]

    Permalink
    Attributes
    protected
  65. def toString(): String

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CassandraRecovery

Inherited from TaggedPreparedStatements

Inherited from CassandraStatements

Inherited from CassandraTagRecovery

Inherited from AsyncWriteJournal

Inherited from AsyncRecovery

Inherited from WriteJournalBase

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped