Class RandomPollStrategy
java.lang.Object
com.linkedin.venice.pubsub.mock.adapter.consumer.poll.AbstractPollStrategy
com.linkedin.venice.pubsub.mock.adapter.consumer.poll.RandomPollStrategy
- All Implemented Interfaces:
- PollStrategy
A simple 
PollStrategy which delivers messages from any partition, while respecting the
 ordering guarantee of individual partitions.
 The resulting consumption order is non-deterministic.- 
Field SummaryFields inherited from class com.linkedin.venice.pubsub.mock.adapter.consumer.poll.AbstractPollStrategykeepPollingWhenEmpty
- 
Constructor SummaryConstructorsConstructorDescriptionRandomPollStrategy(boolean keepPollingWhenEmpty) RandomPollStrategy(int maxMessagePerPoll) 
- 
Method SummaryMethods inherited from class com.linkedin.venice.pubsub.mock.adapter.consumer.poll.AbstractPollStrategyincrementOffset, poll
- 
Constructor Details- 
RandomPollStrategypublic RandomPollStrategy()
- 
RandomPollStrategypublic RandomPollStrategy(int maxMessagePerPoll) 
- 
RandomPollStrategypublic RandomPollStrategy(boolean keepPollingWhenEmpty) 
 
- 
- 
Method Details- 
getNextPollprotected MockInMemoryPartitionPosition getNextPoll(Map<PubSubTopicPartition, InMemoryPubSubPosition> offsets) - Specified by:
- getNextPollin class- AbstractPollStrategy
 
 
-