Package com.linkedin.venice.pubsub.api
Interface PubSubPosition
- All Superinterfaces:
Measurable
- All Known Implementing Classes:
ApacheKafkaOffsetPosition
,InMemoryPubSubPosition
Represents a position of a message in a partition of a topic.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
static PubSubPosition
getPositionFromWireFormat
(PubSubPositionWireFormat positionWireFormat) Position wrapper is used to wrap the position type and the position value.default ByteBuffer
Returns the serialized wire format bytes of this position.int
hashCode()
Methods inherited from interface com.linkedin.venice.memory.Measurable
getHeapSize
-
Method Details
-
getNumericOffset
long getNumericOffset() -
equals
-
hashCode
int hashCode() -
getPositionWireFormat
PubSubPositionWireFormat getPositionWireFormat()Position wrapper is used to wrap the position type and the position value. This is used to serialize and deserialize the position object when sending and receiving it over the wire.- Returns:
- the position wrapper
-
getWireFormatBytes
Returns the serialized wire format bytes of this position.- Returns:
- byte array representing the position in wire format
-
getPositionFromWireFormat
-