public class PulsarSink<T> extends Object implements Sink<T>
| Constructor and Description |
|---|
PulsarSink(org.apache.pulsar.client.api.PulsarClient client,
PulsarSinkConfig pulsarSinkConfig,
Map<String,String> properties,
ComponentStatsManager stats,
ClassLoader functionClassLoader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
open(Map<String,Object> config,
SinkContext sinkContext) |
void |
write(Record<T> record) |
public PulsarSink(org.apache.pulsar.client.api.PulsarClient client,
PulsarSinkConfig pulsarSinkConfig,
Map<String,String> properties,
ComponentStatsManager stats,
ClassLoader functionClassLoader)
public void open(Map<String,Object> config, SinkContext sinkContext) throws Exception
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.