Class RandomPollStrategy

  • All Implemented Interfaces:
    PollStrategy

    public class RandomPollStrategy
    extends AbstractPollStrategy
    A simple PollStrategy which delivers messages from any partition, while respecting the ordering guarantee of individual partitions. The resulting consumption order is non-deterministic.
    • Constructor Detail

      • RandomPollStrategy

        public RandomPollStrategy()
      • RandomPollStrategy

        public RandomPollStrategy​(int maxMessagePerPoll)
      • RandomPollStrategy

        public RandomPollStrategy​(boolean keepPollingWhenEmpty)