Class MultiConsumerPulsarSource<T>
java.lang.Object
org.apache.pulsar.functions.source.PulsarSource<T>
org.apache.pulsar.functions.source.PushPulsarSource<T>
org.apache.pulsar.functions.source.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:
-
Field Summary
Fields inherited from class org.apache.pulsar.functions.source.PulsarSource
properties, pulsarClient, topicSchema -
Constructor Summary
ConstructorsConstructorDescriptionMultiConsumerPulsarSource(org.apache.pulsar.client.api.PulsarClient pulsarClient, MultiConsumerPulsarSourceConfig pulsarSourceConfig, Map<String, String> properties, ClassLoader functionClassLoader) -
Method Summary
Methods inherited from class org.apache.pulsar.functions.source.PushPulsarSource
consume, getQueueLength, readMethods inherited from class org.apache.pulsar.functions.source.PulsarSource
buildPulsarSourceConsumerConfig, buildRecord, createConsumeBuilderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.client.api.MessageListener
reachedEndOfTopic
-
Constructor Details
-
MultiConsumerPulsarSource
public MultiConsumerPulsarSource(org.apache.pulsar.client.api.PulsarClient pulsarClient, MultiConsumerPulsarSourceConfig pulsarSourceConfig, Map<String, String> properties, ClassLoader functionClassLoader)
-
-
Method Details
-
open
Description copied from class:PushPulsarSourceOpen connector with configuration. -
received
public void received(org.apache.pulsar.client.api.Consumer<T> consumer, org.apache.pulsar.client.api.Message<T> message) - Specified by:
receivedin interfaceorg.apache.pulsar.client.api.MessageListener<T>
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
getInputConsumers
- Specified by:
getInputConsumersin classPulsarSource<T>
-