Package akka.persistence.query
Class UpdatedDurableState<A>
- java.lang.Object
-
- akka.persistence.query.UpdatedDurableState<A>
-
- Type Parameters:
A
- the type of the value
- All Implemented Interfaces:
DurableStateChange<A>
public final class UpdatedDurableState<A> extends java.lang.Object implements 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 nextchanges
orcurrentChanges
query. param: timestamp The time the state was stored, in milliseconds since midnight, January 1, 1970 UTC (same asSystem.currentTimeMillis
).
-
-
Constructor Summary
Constructors Constructor Description UpdatedDurableState(java.lang.String persistenceId, long revision, A value, Offset offset, long timestamp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Offset
offset()
The offset that can be used in nextchanges
orcurrentChanges
query.java.lang.String
persistenceId()
The persistence id of the origin entity.long
revision()
long
timestamp()
static <A> scala.Option<scala.Tuple5<java.lang.String,java.lang.Object,A,Offset,java.lang.Object>>
unapply(UpdatedDurableState<A> arg)
A
value()
-
-
-
Method Detail
-
unapply
public static <A> scala.Option<scala.Tuple5<java.lang.String,java.lang.Object,A,Offset,java.lang.Object>> unapply(UpdatedDurableState<A> arg)
-
persistenceId
public java.lang.String persistenceId()
Description copied from interface:DurableStateChange
The persistence id of the origin entity.- Specified by:
persistenceId
in interfaceDurableStateChange<A>
-
revision
public long revision()
-
value
public A value()
-
offset
public Offset offset()
Description copied from interface:DurableStateChange
The offset that can be used in nextchanges
orcurrentChanges
query.- Specified by:
offset
in interfaceDurableStateChange<A>
-
timestamp
public long timestamp()
-
-