Class BatchDataGeneratorPushSource

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.lang.Runnable, org.apache.pulsar.io.core.BatchSource<Person>

    public class BatchDataGeneratorPushSource
    extends org.apache.pulsar.io.core.BatchPushSource<Person>
    implements java.lang.Runnable
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void discover​(java.util.function.Consumer taskEater)  
      void open​(java.util.Map config, org.apache.pulsar.io.core.SourceContext context)  
      void prepare​(byte[] instanceSplit)  
      void run()  
      • Methods inherited from class org.apache.pulsar.io.core.BatchPushSource

        consume, getQueueLength, notifyError, readNext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BatchDataGeneratorPushSource

        public BatchDataGeneratorPushSource()
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • open

        public void open​(java.util.Map config,
                         org.apache.pulsar.io.core.SourceContext context)
                  throws java.lang.Exception
        Specified by:
        open in interface org.apache.pulsar.io.core.BatchSource<Person>
        Throws:
        java.lang.Exception
      • discover

        public void discover​(java.util.function.Consumer taskEater)
                      throws java.lang.Exception
        Specified by:
        discover in interface org.apache.pulsar.io.core.BatchSource<Person>
        Throws:
        java.lang.Exception
      • prepare

        public void prepare​(byte[] instanceSplit)
                     throws java.lang.Exception
        Specified by:
        prepare in interface org.apache.pulsar.io.core.BatchSource<Person>
        Throws:
        java.lang.Exception
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable