public class SingleConsumerPulsarSource<T> extends PulsarSource<T>
| Constructor and Description |
|---|
SingleConsumerPulsarSource(org.apache.pulsar.client.api.PulsarClient pulsarClient,
SingleConsumerPulsarSourceConfig pulsarSourceConfig,
Map<String,String> properties,
ClassLoader functionClassLoader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<org.apache.pulsar.client.api.Consumer<T>> |
getInputConsumers() |
void |
open(Map<String,Object> config,
SourceContext sourceContext) |
Record<T> |
read() |
buildPulsarSourceConsumerConfig, buildRecord, createConsumeBuilderpublic SingleConsumerPulsarSource(org.apache.pulsar.client.api.PulsarClient pulsarClient,
SingleConsumerPulsarSourceConfig pulsarSourceConfig,
Map<String,String> properties,
ClassLoader functionClassLoader)
public void open(Map<String,Object> config, SourceContext sourceContext) throws Exception
Exceptionpublic List<org.apache.pulsar.client.api.Consumer<T>> getInputConsumers()
getInputConsumers in class PulsarSource<T>Copyright © 2017–2021 Apache Software Foundation. All rights reserved.