Class BlockingObserverPollStrategy
java.lang.Object
com.linkedin.venice.pubsub.mock.adapter.consumer.poll.AbstractPollStrategy
com.linkedin.venice.pubsub.mock.adapter.consumer.poll.BlockingObserverPollStrategy
- All Implemented Interfaces:
- PollStrategy
This 
PollStrategy delegates polling to another implementation, and also executes
 an arbitrary function during each poll. This function is only allowed to observe, not
 to tamper with the data being polled. The function is executed synchronously, thus
 making it easy to reason about the state of the consumption stream at the time of the
 function's execution.- 
Field SummaryFields inherited from class com.linkedin.venice.pubsub.mock.adapter.consumer.poll.AbstractPollStrategykeepPollingWhenEmpty
- 
Constructor SummaryConstructorsConstructorDescriptionBlockingObserverPollStrategy(AbstractPollStrategy basePollStrategy, Consumer<MockInMemoryPartitionPosition> observer) 
- 
Method SummaryMethods inherited from class com.linkedin.venice.pubsub.mock.adapter.consumer.poll.AbstractPollStrategyincrementOffset, poll
- 
Constructor Details- 
BlockingObserverPollStrategypublic BlockingObserverPollStrategy(AbstractPollStrategy basePollStrategy, Consumer<MockInMemoryPartitionPosition> observer) 
 
- 
- 
Method Details- 
getNextPollprotected MockInMemoryPartitionPosition getNextPoll(Map<PubSubTopicPartition, InMemoryPubSubPosition> offsets) - Specified by:
- getNextPollin class- AbstractPollStrategy
 
 
-