2021-06-01 18:33:26 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2021 Lightbend Inc. <https://www.lightbend.com>
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package akka.persistence.query
|
|
|
|
|
|
2021-07-08 15:04:07 +02:00
|
|
|
import akka.annotation.ApiMayChange
|
|
|
|
|
|
2021-06-01 18:33:26 +02:00
|
|
|
/**
|
2021-07-08 15:04:07 +02:00
|
|
|
* API May Change
|
|
|
|
|
*
|
2021-06-01 18:33:26 +02:00
|
|
|
* @param persistenceId The persistence id of the origin entity.
|
|
|
|
|
* @param seqNr The sequence number from the origin entity.
|
|
|
|
|
* @param value The object value.
|
|
|
|
|
* @param offset The offset that can be used in next `changes` or `currentChanges` query.
|
|
|
|
|
* @param timestamp The time the state was stored, in milliseconds since midnight, January 1, 1970 UTC
|
|
|
|
|
* (same as `System.currentTimeMillis`).
|
|
|
|
|
* @tparam A the type of the value
|
|
|
|
|
*/
|
2021-07-08 15:04:07 +02:00
|
|
|
@ApiMayChange
|
2021-06-01 18:33:26 +02:00
|
|
|
final class DurableStateChange[A](
|
|
|
|
|
val persistenceId: String,
|
2021-06-28 18:58:35 +05:30
|
|
|
val revision: Long,
|
2021-06-01 18:33:26 +02:00
|
|
|
val value: A,
|
|
|
|
|
val offset: Offset,
|
|
|
|
|
val timestamp: Long)
|