Class ArbitraryOrderingPollStrategy
- java.lang.Object
-
- com.linkedin.venice.unit.kafka.consumer.poll.AbstractPollStrategy
-
- com.linkedin.venice.unit.kafka.consumer.poll.ArbitraryOrderingPollStrategy
-
- All Implemented Interfaces:
PollStrategy
public class ArbitraryOrderingPollStrategy extends AbstractPollStrategy
APollStrategy
implementation which delivers messages in the order specified at construction time.
-
-
Field Summary
-
Fields inherited from class com.linkedin.venice.unit.kafka.consumer.poll.AbstractPollStrategy
keepPollingWhenEmpty
-
-
Constructor Summary
Constructors Constructor Description ArbitraryOrderingPollStrategy(java.util.Queue<PubSubTopicPartitionOffset> pollDeliveryOrder)
-
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
-
-
-
-
Constructor Detail
-
ArbitraryOrderingPollStrategy
public ArbitraryOrderingPollStrategy(java.util.Queue<PubSubTopicPartitionOffset> pollDeliveryOrder)
-
-
Method Detail
-
getNextPoll
protected PubSubTopicPartitionOffset getNextPoll(java.util.Map<PubSubTopicPartition,java.lang.Long> offsets)
- Specified by:
getNextPoll
in classAbstractPollStrategy
-
-