Class

akka.persistence.cassandra.snapshot

CassandraSnapshotStore

Related Doc: package snapshot

Permalink

class CassandraSnapshotStore extends SnapshotStore with CassandraStatements with ActorLogging with CassandraSnapshotCleanup

Source
CassandraSnapshotStore.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CassandraSnapshotStore
  2. CassandraSnapshotCleanup
  3. CassandraStatements
  4. SnapshotStore
  5. ActorLogging
  6. Actor
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CassandraSnapshotStore(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 clone(): AnyRef

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

    Permalink
    Definition Classes
    Actor
  12. def createKeyspace: String

    Permalink
    Definition Classes
    CassandraStatements
  13. def createTable: String

    Permalink
    Definition Classes
    CassandraStatements
  14. def deleteAllForPersistenceId(pid: String): Future[Done]

    Permalink
    Definition Classes
    CassandraSnapshotCleanup
  15. def deleteAllSnapshotForPersistenceId: String

    Permalink
    Definition Classes
    CassandraStatements
  16. def deleteAllSnapshotForPersistenceIdAndSequenceNrBetween: String

    Permalink
    Definition Classes
    CassandraStatements
  17. def deleteAsync(persistenceId: String, criteria: SnapshotSelectionCriteria): Future[Unit]

    Permalink

    Plugin API: deletes all snapshots matching criteria.

    Plugin API: deletes all snapshots matching criteria. This call is protected with a circuit-breaker.

    persistenceId

    id of the persistent actor.

    criteria

    selection criteria for deleting. If no timestamp constraints are specified this routine

    Definition Classes
    CassandraSnapshotStore → SnapshotStore
    Note

    Due to the limitations of Cassandra deletion requests, this routine makes an initial query in order to obtain the records matching the criteria which are then deleted in a batch deletion. Improvements in Cassandra v3.0+ mean a single range deletion on the sequence number is used instead, except if timestamp constraints are specified, which still requires the original two step routine.

  18. def deleteAsync(metadata: SnapshotMetadata): Future[Unit]

    Permalink
    Definition Classes
    CassandraSnapshotCleanup
  19. def deleteSnapshot: String

    Permalink
    Definition Classes
    CassandraStatements
  20. implicit val ec: ExecutionContext

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. def executeBatch(body: (BatchStatement) ⇒ Unit): Future[Unit]

    Permalink
  24. def executeCreateKeyspaceAndTables(session: Session, config: CassandraSnapshotStoreConfig)(implicit ec: ExecutionContext): Future[Done]

    Permalink

    Execute creation of keyspace and tables is limited to one thread at a time to reduce the risk of (annoying) "Column family ID mismatch" exception when write and read-side plugins are started at the same time.

    Execute creation of keyspace and tables is limited to one thread at a time to reduce the risk of (annoying) "Column family ID mismatch" exception when write and read-side plugins are started at the same time. Those statements are retried, because that could happen across different nodes also but serializing those statements gives a better "experience".

    Definition Classes
    CassandraStatements
  25. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Any
  29. def loadAsync(persistenceId: String, criteria: SnapshotSelectionCriteria): Future[Option[SelectedSnapshot]]

    Permalink
    Definition Classes
    CassandraSnapshotStore → SnapshotStore
  30. def log: LoggingAdapter

    Permalink
    Definition Classes
    ActorLogging
  31. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  34. def postRestart(reason: Throwable): Unit

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

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

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

    Permalink
    Definition Classes
    CassandraSnapshotStore → Actor
  38. def preparedDeleteAllSnapshotsForPid: Future[PreparedStatement]

    Permalink
    Definition Classes
    CassandraSnapshotCleanup
  39. def preparedDeleteAllSnapshotsForPidAndSequenceNrBetween: Future[PreparedStatement]

    Permalink
    Definition Classes
    CassandraSnapshotCleanup
  40. def preparedDeleteSnapshot: Future[PreparedStatement]

    Permalink
    Definition Classes
    CassandraSnapshotCleanup
  41. final def receive: PartialFunction[Any, Unit]

    Permalink
    Definition Classes
    SnapshotStore → Actor
  42. def receivePluginInternal: Receive

    Permalink
    Definition Classes
    CassandraSnapshotStore → SnapshotStore
  43. final val receiveSnapshotStore: actor.Actor.Receive

    Permalink
    Definition Classes
    SnapshotStore
  44. def saveAsync(metadata: SnapshotMetadata, snapshot: Any): Future[Unit]

    Permalink
    Definition Classes
    CassandraSnapshotStore → SnapshotStore
  45. def selectSnapshot: String

    Permalink
    Definition Classes
    CassandraStatements
  46. def selectSnapshotMetadata(limit: Option[Int] = None): String

    Permalink
    Definition Classes
    CassandraStatements
  47. implicit final val self: ActorRef

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

    Permalink
    Definition Classes
    Actor
  49. val serialization: Serialization

    Permalink
  50. val session: CassandraSession

    Permalink
  51. val snapshotConfig: CassandraSnapshotStoreConfig

    Permalink
  52. val snapshotDeserializer: SnapshotDeserializer

    Permalink
  53. def supervisorStrategy: SupervisorStrategy

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. def writeSnapshot(withMeta: Boolean): String

    Permalink
    Definition Classes
    CassandraStatements

Inherited from CassandraSnapshotCleanup

Inherited from CassandraStatements

Inherited from SnapshotStore

Inherited from ActorLogging

Inherited from Actor

Inherited from AnyRef

Inherited from Any

Ungrouped