public abstract class AbstractSink<T> extends Object implements Sink<T>
| Modifier and Type | Field and Description |
|---|---|
protected FlumeConnector |
flumeConnector |
protected static BlockingQueue<Object> |
records |
| Constructor and Description |
|---|
AbstractSink() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
abstract T |
extractValue(org.apache.pulsar.functions.api.Record<T> record) |
static BlockingQueue<Object> |
getQueue() |
void |
open(Map<String,Object> config,
SinkContext sinkContext) |
void |
write(org.apache.pulsar.functions.api.Record<T> record) |
protected static BlockingQueue<Object> records
protected FlumeConnector flumeConnector
public static BlockingQueue<Object> getQueue()
public void open(Map<String,Object> config, SinkContext sinkContext) throws Exception
public void write(org.apache.pulsar.functions.api.Record<T> record)
public void close()
close in interface AutoCloseableCopyright © 2017–2022 Apache Software Foundation. All rights reserved.