@InterfaceAudience.Public @InterfaceStability.Stable public interface Sink<T> extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
open(Map<String,Object> config,
SinkContext sinkContext)
Open connector with configuration.
|
void |
write(Record<T> record)
Write a message to Sink.
|
closevoid open(Map<String,Object> config, SinkContext sinkContext) throws Exception
config - initialization configsinkContext - environment where the sink connector is runningException - IO type exceptions when opening a connectorCopyright © 2017–2021 Apache Software Foundation. All rights reserved.