Class ReadOffset
java.lang.Object
org.springframework.data.redis.connection.stream.ReadOffset
Value object representing read offset for a Stream.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ReadOffsetRead all arriving elements from the stream starting atoffset.static ReadOffsetRead all arriving elements from the stream starting atRecordId.inthashCode()static ReadOffsetRead all new arriving elements with ids greater than the last one consumed by the consumer group.static ReadOffsetlatest()Read from the latest offset.toString()
-
Method Details
-
latest
Read from the latest offset.- Returns:
-
lastConsumed
Read all new arriving elements with ids greater than the last one consumed by the consumer group.- Returns:
- the
ReadOffsetobject without a specific offset.
-
from
Read all arriving elements from the stream starting atoffset.- Parameters:
offset- the stream offset.- Returns:
- the
ReadOffsetstarting atoffset.
-
from
Read all arriving elements from the stream starting atRecordId. Using aauto-generatedRecordIdreturns thelatest()read offset.- Parameters:
offset- the stream offset.- Returns:
- the
ReadOffsetstarting atRecordId.
-
getOffset
-
equals
-
hashCode
public int hashCode() -
toString
-