Class StreamOffset<K>
java.lang.Object
org.springframework.data.redis.connection.stream.StreamOffset<K>
Value object representing a Stream Id with its offset.
- Author:
 - Mark Paluch
 
- 
Method Summary
Modifier and TypeMethodDescriptionstatic <K> StreamOffset<K>create(K stream, ReadOffset readOffset) booleanstatic <K> StreamOffset<K>static <K> StreamOffset<K>fromStart(K stream) getKey()inthashCode()static <K> StreamOffset<K>latest(K stream) toString() 
- 
Method Details
- 
create
- Parameters:
 stream- the stream key.readOffset- theReadOffsetto use.- Returns:
 - new instance of 
StreamOffset. 
 - 
latest
- Type Parameters:
 K-- Parameters:
 stream- the stream key.- Returns:
 - new instance of 
StreamOffset. 
 - 
fromStart
- Type Parameters:
 K-- Parameters:
 stream- the stream key.- Returns:
 - new instance of 
StreamOffset. 
 - 
from
- Type Parameters:
 K-- Parameters:
 reference- the record to be used as reference point.- Returns:
 - new instance of 
StreamOffset. 
 - 
getKey
 - 
getOffset
 - 
toString
 - 
equals
 - 
hashCode
public int hashCode() 
 -