Package com.linkedin.venice.pubsub.mock
Class InMemoryPubSubPositionFactory
java.lang.Object
com.linkedin.venice.pubsub.PubSubPositionFactory
com.linkedin.venice.pubsub.mock.InMemoryPubSubPositionFactory
-
Constructor Summary
ConstructorsConstructorDescriptionInMemoryPubSubPositionFactory(int positionTypeId) Constructs a factory with the given position type ID. -
Method Summary
Modifier and TypeMethodDescriptionfromPositionRawBytes(ByteBuffer buffer) Deserializes aPubSubPositionfrom the given byte buffer.static PubSubPositionTypeRegistryReturns the fully qualified class name of thePubSubPositionimplementation handled by this factory.Methods inherited from class com.linkedin.venice.pubsub.PubSubPositionFactory
fromPositionRawBytes, fromWireFormat, getPositionTypeId
-
Constructor Details
-
InMemoryPubSubPositionFactory
public InMemoryPubSubPositionFactory(int positionTypeId) Constructs a factory with the given position type ID.- Parameters:
positionTypeId- the unique integer identifier for the position type
-
-
Method Details
-
fromPositionRawBytes
Description copied from class:PubSubPositionFactoryDeserializes aPubSubPositionfrom the given byte buffer.- Specified by:
fromPositionRawBytesin classPubSubPositionFactory- Parameters:
buffer- the byte buffer containing the serialized position (does not include type ID)- Returns:
- a new
PubSubPositioninstance
-
getPubSubPositionClassName
Description copied from class:PubSubPositionFactoryReturns the fully qualified class name of thePubSubPositionimplementation handled by this factory.- Specified by:
getPubSubPositionClassNamein classPubSubPositionFactory- Returns:
- the fully qualified class name of the associated position class
-
getPositionTypeRegistryWithInMemoryPosition
-