Package io.pravega.client.stream
Interface EventPointer
-
public interface EventPointer
A pointer to an event. This can be used to retrieve a previously read event by callingEventStreamReader.fetchEvent(EventPointer)
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description io.pravega.client.stream.impl.EventPointerInternal
asImpl()
Used internally.static EventPointer
fromBytes(java.nio.ByteBuffer eventPointer)
Deserializes the event pointer from its serialized from obtained from callingtoBytes()
.Stream
getStream()
Returns the stream from which event is read from, fully qualified stream name can be obtained from callingStream.getScopedName()
}.java.nio.ByteBuffer
toBytes()
Serializes the Event pointer to a compact binary form.
-
-
-
Method Detail
-
asImpl
io.pravega.client.stream.impl.EventPointerInternal asImpl()
Used internally. Do not call.- Returns:
- Implementation of EventPointer interface
-
toBytes
java.nio.ByteBuffer toBytes()
Serializes the Event pointer to a compact binary form.- Returns:
- A binary representation of the event pointer.
-
fromBytes
static EventPointer fromBytes(java.nio.ByteBuffer eventPointer)
Deserializes the event pointer from its serialized from obtained from callingtoBytes()
.- Parameters:
eventPointer
- A serialized event pointer.- Returns:
- The event pointer object.
-
getStream
Stream getStream()
Returns the stream from which event is read from, fully qualified stream name can be obtained from callingStream.getScopedName()
}.- Returns:
- the stream object.
-
-