Package io.pravega.client.stream
Interface Position
-
- All Known Implementing Classes:
PositionImpl,PositionInternal
public interface PositionA position in a stream. Used to indicate where a reader died. SeeReaderGroup.readerOffline(String, Position)Note that this is serializable so that it can be written to an external datastore.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description PositionInternalasImpl()Used internally.static PositionfromBytes(java.nio.ByteBuffer serializedPosition)Deserializes the position from its serialized from obtained from callingtoBytes().java.nio.ByteBuffertoBytes()Serializes the position to a compact byte array.
-
-
-
Method Detail
-
asImpl
PositionInternal asImpl()
Used internally. Do not call.- Returns:
- Implementation of position object interface
-
toBytes
java.nio.ByteBuffer toBytes()
Serializes the position to a compact byte array.- Returns:
- compact byte array
-
-