Package com.linkedin.venice.pubsub.mock
Class InMemoryPubSubPositionFactory
java.lang.Object
com.linkedin.venice.pubsub.PubSubPositionFactory
com.linkedin.venice.pubsub.mock.InMemoryPubSubPositionFactory
- 
Constructor SummaryConstructorsConstructorDescriptionInMemoryPubSubPositionFactory(int positionTypeId) Constructs a factory with the given position type ID.
- 
Method SummaryModifier 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.PubSubPositionFactoryfromPositionRawBytes, fromWireFormat, getPositionTypeId
- 
Constructor Details- 
InMemoryPubSubPositionFactorypublic InMemoryPubSubPositionFactory(int positionTypeId) Constructs a factory with the given position type ID.- Parameters:
- positionTypeId- the unique integer identifier for the position type
 
 
- 
- 
Method Details- 
fromPositionRawBytesDescription copied from class:PubSubPositionFactoryDeserializes aPubSubPositionfrom the given byte buffer.- Specified by:
- fromPositionRawBytesin class- PubSubPositionFactory
- Parameters:
- buffer- the byte buffer containing the serialized position (does not include type ID)
- Returns:
- a new PubSubPositioninstance
 
- 
getPubSubPositionClassNameDescription copied from class:PubSubPositionFactoryReturns the fully qualified class name of thePubSubPositionimplementation handled by this factory.- Specified by:
- getPubSubPositionClassNamein class- PubSubPositionFactory
- Returns:
- the fully qualified class name of the associated position class
 
- 
getPositionTypeRegistryWithInMemoryPosition
 
-