Package io.pravega.client.stream
Interface EventPointer
-
- All Known Implementing Classes:
EventPointerImpl,EventPointerInternal
public interface EventPointerA 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 EventPointerInternalasImpl()Used internally.static EventPointerfromBytes(java.nio.ByteBuffer eventPointer)Deserializes the event pointer from its serialized from obtained from callingtoBytes().java.nio.ByteBuffertoBytes()Serializes the Event pointer to a compact binary form.
-
-
-
Method Detail
-
asImpl
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.
-
-