Class MultiConsumerPulsarSource<T>

All Implemented Interfaces:
Serializable, AutoCloseable, org.apache.pulsar.client.api.MessageListener<T>, Source<T>

public class MultiConsumerPulsarSource<T> extends PushPulsarSource<T> implements org.apache.pulsar.client.api.MessageListener<T>
See Also:
  • Constructor Details

  • Method Details

    • open

      public void open(Map<String,Object> config, SourceContext sourceContext) throws Exception
      Description copied from class: PushPulsarSource
      Open connector with configuration.
      Specified by:
      open in interface Source<T>
      Specified by:
      open in class PushPulsarSource<T>
      Parameters:
      config - initialization config
      sourceContext - environment where the source connector is running
      Throws:
      Exception - IO type exceptions when opening a connector
    • received

      public void received(org.apache.pulsar.client.api.Consumer<T> consumer, org.apache.pulsar.client.api.Message<T> message)
      Specified by:
      received in interface org.apache.pulsar.client.api.MessageListener<T>
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception
    • getInputConsumers

      public List<org.apache.pulsar.client.api.Consumer<T>> getInputConsumers()
      Specified by:
      getInputConsumers in class PulsarSource<T>