Class UpdatedDurableState<A>
java.lang.Object
org.apache.pekko.persistence.query.UpdatedDurableState<A>
- Type Parameters:
A- the type of the value
- All Implemented Interfaces:
DurableStateChange<A>
param: persistenceId The persistence id of the origin entity.
param: revision The revision 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).-
Constructor Summary
ConstructorsConstructorDescriptionUpdatedDurableState(String persistenceId, long revision, A value, Offset offset, long timestamp) -
Method Summary
Modifier and TypeMethodDescriptionoffset()The offset that can be used in nextchangesorcurrentChangesquery.The persistence id of the origin entity.longrevision()longunapply(UpdatedDurableState<A> arg) value()
-
Constructor Details
-
UpdatedDurableState
-
-
Method Details
-
unapply
public static <A> scala.Option<scala.Tuple5<String,Object, unapplyA, Offset, Object>> (UpdatedDurableState<A> arg) -
persistenceId
Description copied from interface:DurableStateChangeThe persistence id of the origin entity.- Specified by:
persistenceIdin interfaceDurableStateChange<A>
-
revision
public long revision() -
value
-
offset
Description copied from interface:DurableStateChangeThe offset that can be used in nextchangesorcurrentChangesquery.- Specified by:
offsetin interfaceDurableStateChange<A>
-
timestamp
public long timestamp()
-