java.lang.Object
io.lettuce.core.XReadArgs.StreamOffset<K>
- Enclosing class:
- XReadArgs
public static class XReadArgs.StreamOffset<K> extends Object
Value object representing a Stream with its offset.
-
Method Summary
Modifier and Type Method Description static <K> XReadArgs.StreamOffset<K>from(K name, String offset)Read all arriving elements from the stream identified bynamestarting atoffset.KgetName()StringgetOffset()static <K> XReadArgs.StreamOffset<K>lastConsumed(K name)Read all new arriving elements from the stream identified bynamewith ids greater than the last one consumed by the consumer group.static <K> XReadArgs.StreamOffset<K>latest(K name)Read all new arriving elements from the stream identified byname.StringtoString()
-
Method Details
-
latest
Read all new arriving elements from the stream identified byname.- Parameters:
name- must not benull.- Returns:
- the
XReadArgs.StreamOffsetobject without a specific offset.
-
lastConsumed
Read all new arriving elements from the stream identified bynamewith ids greater than the last one consumed by the consumer group.- Parameters:
name- must not benull.- Returns:
- the
XReadArgs.StreamOffsetobject without a specific offset.
-
from
Read all arriving elements from the stream identified bynamestarting atoffset.- Parameters:
name- must not benull.offset- the stream offset.- Returns:
- the
XReadArgs.StreamOffsetobject without a specific offset.
-
getName
-
getOffset
-
toString
-