Class PubSubHelper


  • public class PubSubHelper
    extends java.lang.Object
    • Constructor Detail

      • PubSubHelper

        public PubSubHelper()
    • Method Detail

      • getDummyKey

        public static KafkaKey getDummyKey()
      • getDummyKey

        public static KafkaKey getDummyKey​(boolean isControlMessage)
      • getDummyValue

        public static KafkaMessageEnvelope getDummyValue​(long producerMessageTimestamp)
      • produceMessages

        public static java.util.List<PubSubHelper.MutablePubSubMessage> produceMessages​(PubSubProducerAdapter pubSubProducerAdapter,
                                                                                        PubSubTopicPartition topicPartition,
                                                                                        int messageCount,
                                                                                        long delayBetweenMessagesInMs,
                                                                                        boolean controlMessages)
                                                                                 throws java.lang.InterruptedException,
                                                                                        java.util.concurrent.ExecutionException,
                                                                                        java.util.concurrent.TimeoutException
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.util.concurrent.TimeoutException