Package akka.persistence.query
Class TimeBasedUUID
- java.lang.Object
-
- akka.persistence.query.Offset
-
- akka.persistence.query.TimeBasedUUID
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TimeBasedUUID>
,scala.Equals
,scala.math.Ordered<TimeBasedUUID>
,scala.Product
public final class TimeBasedUUID extends Offset implements scala.math.Ordered<TimeBasedUUID>, scala.Product, java.io.Serializable
Corresponds to an ordered unique identifier of the events. Note that the corresponding offset of each event is provided in theEventEnvelope
, which makes it possible to resume the stream at a later point from a given offset.The
offset
is exclusive, i.e. the event with the exact same sequence number will not be included in the returned stream. This means that you can use the offset that is returned inEventEnvelope
as theoffset
parameter in a subsequent query.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TimeBasedUUID(java.util.UUID value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeBasedUUID
apply(java.util.UUID value)
boolean
canEqual(java.lang.Object x$1)
int
compare(TimeBasedUUID other)
TimeBasedUUID
copy(java.util.UUID value)
java.util.UUID
copy$default$1()
boolean
equals(java.lang.Object x$1)
int
hashCode()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
java.lang.String
toString()
static scala.Option<java.util.UUID>
unapply(TimeBasedUUID x$0)
java.util.UUID
value()
-
Methods inherited from class akka.persistence.query.Offset
noOffset, sequence, timeBasedUUID, timestamp
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
apply
public static TimeBasedUUID apply(java.util.UUID value)
-
unapply
public static scala.Option<java.util.UUID> unapply(TimeBasedUUID x$0)
-
value
public java.util.UUID value()
-
compare
public int compare(TimeBasedUUID other)
- Specified by:
compare
in interfacescala.math.Ordered<TimeBasedUUID>
-
copy
public TimeBasedUUID copy(java.util.UUID value)
-
copy$default$1
public java.util.UUID copy$default$1()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-