Class RandomPollStrategy
- java.lang.Object
-
- com.linkedin.venice.unit.kafka.consumer.poll.AbstractPollStrategy
-
- com.linkedin.venice.unit.kafka.consumer.poll.RandomPollStrategy
-
- All Implemented Interfaces:
PollStrategy
public class RandomPollStrategy extends AbstractPollStrategy
A simplePollStrategy
which delivers messages from any partition, while respecting the ordering guarantee of individual partitions. The resulting consumption order is non-deterministic.
-
-
Field Summary
-
Fields inherited from class com.linkedin.venice.unit.kafka.consumer.poll.AbstractPollStrategy
keepPollingWhenEmpty
-
-
Constructor Summary
Constructors Constructor Description RandomPollStrategy()
RandomPollStrategy(boolean keepPollingWhenEmpty)
RandomPollStrategy(int maxMessagePerPoll)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PubSubTopicPartitionOffset
getNextPoll(java.util.Map<PubSubTopicPartition,java.lang.Long> offsets)
-
Methods inherited from class com.linkedin.venice.unit.kafka.consumer.poll.AbstractPollStrategy
incrementOffset, poll
-
-
-
-
Method Detail
-
getNextPoll
protected PubSubTopicPartitionOffset getNextPoll(java.util.Map<PubSubTopicPartition,java.lang.Long> offsets)
- Specified by:
getNextPoll
in classAbstractPollStrategy
-
-